@stamp/privatize
Advanced tools
Comparing version 0.1.7 to 1.0.0
@@ -23,3 +23,3 @@ var compose = require('@stamp/compose'); | ||
var newObject = {}; | ||
var newObject = {}; // our proxy object | ||
privates.set(newObject, this); | ||
@@ -49,4 +49,5 @@ | ||
for (var i = 0; i < arguments.length; i++) { | ||
if (typeof arguments[i] === 'string' && arguments[i].length > 0) { | ||
methodNames.push(arguments[i]); | ||
var arg = arguments[i]; | ||
if (typeof arg === 'string' && arg.length > 0) { | ||
methodNames.push(arg); | ||
} | ||
@@ -65,2 +66,3 @@ } | ||
var initializers = opts.stamp.compose.initializers; | ||
// Keep our initializer the last to return proxy object | ||
initializers.splice(initializers.indexOf(initializer), 1); | ||
@@ -67,0 +69,0 @@ initializers.push(initializer); |
{ | ||
"name": "@stamp/privatize", | ||
"version": "0.1.7", | ||
"version": "1.0.0", | ||
"description": "Protect private properties", | ||
@@ -13,4 +13,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@stamp/compose": "^0.1.6" | ||
"@stamp/compose": "^1.0.0" | ||
} | ||
} |
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
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 v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6779
109
1
+ Added@stamp/compose@1.0.2(transitive)
+ Added@stamp/core@1.0.1(transitive)
- Removed@stamp/compose@0.1.6(transitive)
- Removed@stamp/core@0.1.2(transitive)
Updated@stamp/compose@^1.0.0