Socket
Socket
Sign inDemoInstall

has

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 1.0.0

12

package.json
{
"name": "has",
"description": "Object.prototype.hasOwnProperty.call shortcut",
"version": "0.0.1",
"version": "1.0.0",
"homepage": "https://github.com/tarruda/has",

@@ -26,12 +26,10 @@ "author": {

"chai": "~1.7.2",
"grunt": "~0.4.1",
"grunt-contrib-watch": "~0.5.3",
"grunt-mocha-debug": "~0.0.6",
"grunt-exec-jshint": "~0.0.0",
"grunt-release": "~0.5.1",
"grunt-newer": "~0.5.4"
"mocha": "^1.21.4"
},
"engines": {
"node": ">= 0.8.0"
},
"scripts": {
"test": "node_modules/mocha/bin/mocha"
}
}

@@ -5,9 +5,7 @@ global.expect = require('chai').expect;

run({
'Suite': {
'test': function() {
expect(has({}, 'hasOwnProperty')).to.be.false;
expect(has(Object.prototype, 'hasOwnProperty')).to.be.true;
}
}
describe('has', function() {
it('works!', function() {
expect(has({}, 'hasOwnProperty')).to.be.false;
expect(has(Object.prototype, 'hasOwnProperty')).to.be.true;
});
});
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc