ljharb

ljharb/mock-property

Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.

JavaScript
7
1
MIT License
Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of ljharb/mock-property

Account's avatar
`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.
Account's avatar
string representations of objects in node and the browser
Account's avatar
A CLI tool for arethetypeswrong.github.io
Account's avatar
My shareable eslint config
Account's avatar
My personal tsconfig(s), so my open source projects can share them.
Account's avatar
TypeScript definitions for gopd
Account's avatar
TypeScript definitions for is-callable
Account's avatar
TypeScript definitions for node
Account's avatar
TypeScript definitions for object-inspect
Account's avatar
TypeScript definitions for tape
Account's avatar
Command line tool for generating a changelog from git tags and commit history
Account's avatar
Convert encodings, uses iconv-lite
Account's avatar
Evaluates javascript code blocks from markdown files.
Account's avatar
Detect if we were run as a result of `npm publish`
Account's avatar
Command line tool for creating or updating a .npmignore file based on .gitignore.
Account's avatar
the Istanbul command line interface
Account's avatar
Ensure that when you `npm publish`, the "latest" tag is only set for the truly latest version.
Account's avatar
tap-producing test harness for node and browsers
Account's avatar
TypeScript is a language for application scale JavaScript development
Account's avatar
Define a data property on an object. Will fall back to assignment in an engine without descriptors.
Account's avatar
Does this JS environment support the `name` property on functions?
Account's avatar
Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.
Account's avatar
A robust, ES3 compatible, "has own property" predicate.
Account's avatar
Array#isArray for older browsers
Account's avatar
TypeScript definitions for for-each
Account's avatar
TypeScript definitions for functions-have-names
Account's avatar
TypeScript definitions for get-intrinsic
Account's avatar
TypeScript definitions for has-property-descriptors
Account's avatar
TypeScript definitions for isarray
Account's avatar
TypeScript definitions for make-arrow-function
Account's avatar
TypeScript definitions for make-async-function
Account's avatar
TypeScript definitions for make-generator-function
Account's avatar
TypeScript definitions for object.assign
Account's avatar
Fixtures of ES values, for testing purposes
Account's avatar
A better forEach
Account's avatar
Determine if the JS environment has Symbol support. Supports spec, or shams.

Support the repos that depend on ljharb/mock-property

Account's avatar
tap-producing test harness for node and browsers
Account's avatar
TypeScript definitions for tape
Account's avatar
TAP-producing test harness library for node and browsers
Account's avatar
Before deploying check out the `.env.example` and `.env.test.example` files. You should create your own `.env` (if you plan to deploy to mainnet) and `.env.test` (if you plan to deploy to testnet) files. ```bash DEPLOYER_PRIVATE_KEY=<PRIVATE KEY OF THE DEPLOYER WALLET> ETHERSCAN_API_KEY=<ETHERSCAN API KEY> CHILD_CHAIN_RPC=<RPC OF THE CHILD CHAIN> ROOT_CHAIN_RPC=<RPC OF THE ROOTH CHAIN> ROOT_GAS_PRICE=<GAS PRICE ON THE ROOT CHAIN> ROOT_GAS_LIMIT=<GAS LIMIT ON THE ROOT CHAIN> CHILD_GAS_PRICE=<GAS PRICE ON THE CHILD CHAIN> CHILD_GAS_LIMIT=<GAS LIMIT ON THE CHILD CHAIN> CHECKPOINT_MANAGER=<CHECKPOINT MANAGER ADDRESS> STAKE_MANAGER=<STAKE MANAGER ADDRESS> FURY_TOKEN=<ADDRESS OF THE FURY ERC20 TOKEN> FX_ROOT=<ADDRESS OF THE FX ROOT CONTRACT> FX_CHILD=<ADDRESS OF THE FX CHILD CONTRACT> DAO=<ADDRESS THAT WILL BE USED AS A DAO ON STFURY> INSURANCE=<ADDRESS THAT WILL BE USED AS AN INSURANCE ON STFURY> TREASURY=<ADDRESS THAT WILL BE USED AS A TREASURY ON STFURY> STFURY_SUBMIT_THRESHOLD=<SUBMIT THRESHOLD> ``` # Deploying To deploy on testnet run: ```bash npm run deploy:test ```
Account's avatar
Does the given package have TypeScript types?

Top contributors

ljharb's profile
ljharb
38 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet