New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

props-model

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

props-model - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

14

dist/lib/props-model.js

@@ -16,2 +16,6 @@ "use strict";

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
/**

@@ -192,2 +196,12 @@ * Instances of this class are used to configure and manage a set of named properties.

}
defineViewOfArrayProp(viewName, viewOf, arrayIndex, didChange) {
return this.definePropView(viewName, viewOf, base => base[arrayIndex], (viewValue, baseValue) => [...baseValue.slice(0, arrayIndex), viewValue, ...baseValue.slice(arrayIndex + 1)], didChange);
}
defineViewOfObjectProp(viewName, viewOf, propertyName, didChange) {
return this.definePropView(viewName, viewOf, baseValue => baseValue[propertyName], (viewValue, baseValue) => _objectSpread({}, baseValue, {
[propertyName]: viewValue
}));
}
/**

@@ -194,0 +208,0 @@ * Set one or more properties. You won't typically call this directly, you would use it through

8

package.json
{
"name": "props-model",
"version": "0.3.0",
"version": "0.4.0",
"description": "A model for properties including change events and derived properties",

@@ -75,8 +75,8 @@ "main": "dist/index.js",

"mocha": "5.2.0",
"npm-package-json-lint": "3.4.1",
"npm-package-json-lint": "3.5.0",
"npm-run-all": "4.1.5",
"nyc": "13.3.0",
"remark-cli": "6.0.1",
"rimraf": "2.6.2",
"sinon": "7.2.0",
"rimraf": "2.6.3",
"sinon": "7.2.4",
"sinon-chai": "3.3.0",

@@ -83,0 +83,0 @@ "snazzy": "8.0.0",

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