Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

defaults-extender

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

defaults-extender - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

distribution/index.js

12

package.json
{
"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
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc