defaults-extender
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "defaults-extender", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A different approach for extending Options against Defaults.", | ||
"author": "Rafael Milewski <rafael.milewski@gmail.com>", | ||
"keywords": [ | ||
@@ -13,7 +14,8 @@ "deep", | ||
], | ||
"main": "distribution/Extender.js", | ||
"main": "distribution/index.js", | ||
"license": "MIT", | ||
"scripts": { | ||
"prepublish": "npm test", | ||
"build": "./node_modules/.bin/tsc", | ||
"build": "./node_modules/.bin/tsc && npm run webpack", | ||
"webpack": "./node_modules/.bin/webpack", | ||
"test": "npm run build && ./node_modules/.bin/mocha --compilers js:babel-core/register" | ||
@@ -36,7 +38,9 @@ }, | ||
"@types/node": "^6.0.48", | ||
"@types/webpack": "^2.0.0", | ||
"babel-core": "^6.18.2", | ||
"babel-preset-latest": "^6.16.0", | ||
"mocha": "^3.1.2", | ||
"typescript": "^2.0.10" | ||
"typescript": "^2.0.10", | ||
"webpack": "^1.13.3" | ||
} | ||
} |
@@ -29,3 +29,3 @@ # Defaults-Extender | ||
```js | ||
const extender = require('defaults-extender') | ||
const { extend } = require('defaults-extender') | ||
@@ -42,3 +42,3 @@ const defaults = { | ||
let result = extender.extend(defaults, options); | ||
let result = extend(defaults, options); | ||
@@ -70,3 +70,3 @@ // result in | ||
let result = extender.extend(defaults, options); | ||
let result = extend(defaults, options); | ||
@@ -84,1 +84,9 @@ console.log(result.options.enabled) // undefined | ||
``` | ||
## Build From Source | ||
To build from github, first clone this repo locally then run `npm run build`: | ||
```bash | ||
$ npm run build | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
1
89
4823
7
4
0
1