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

@stamp/privatize

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stamp/privatize - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

8

__tests__/index.js
var compose = require('@stamp/compose');
var InstanceOf = require('@stamp/instanceof');
var Privatize = require('..');

@@ -79,3 +80,8 @@

expect(accessBar).toBe(Orig.compose.methods.bar);
})
});
it('works with InstanceOf stamp', function () {
const Stamp = compose(InstanceOf, Privatize);
expect(Stamp() instanceof Stamp).toBe(true);
});
});

@@ -38,2 +38,11 @@ var compose = require('@stamp/compose');

}
// Integration with @stamp/instanceof
if (typeof Symbol !== "undefined") {
var stampSymbol = Symbol.for('stamp');
if (methods[stampSymbol]) {
newObject[stampSymbol] = opts.stamp;
}
}
return newObject;

@@ -40,0 +49,0 @@ }

5

package.json
{
"name": "@stamp/privatize",
"version": "1.0.2",
"version": "1.0.3",
"description": "Protect private properties",

@@ -14,3 +14,6 @@ "main": "index.js",

"@stamp/compose": "^1.0.2"
},
"devDependencies": {
"@stamp/instanceof": "^1.0.1"
}
}

@@ -100,1 +100,5 @@ # @stamp/privatize

```
## Development
This `@stamp/privatize` module knows about and relies on other ecosystem stamps implementation. This means that other `@stamp/*` ecosystem stamps should know nothing about `@stamp/privatize`. But opposite is acceptable.
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