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

stringmap

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stringmap - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

package.json
{
"name": "stringmap",
"version": "0.2.0",
"version": "0.2.1",
"description": "fast and robust stringmap",

@@ -5,0 +5,0 @@ "main": "stringmap.js",

@@ -12,3 +12,3 @@ # stringmap.js

```javascript
var StringMap = require("./stringmap");
var StringMap = require("stringmap");

@@ -15,0 +15,0 @@ var sm1 = new StringMap();

@@ -67,3 +67,3 @@ // stringmap.js

this.obj = create();
this.hasProto = undefined; // undefined (no __proto__ key) or true (has __proto__ key), never false
this.hasProto = false; // false (no __proto__ key) or true (has __proto__ key)
this.proto = undefined; // value for __proto__ key when hasProto is true, undefined otherwise

@@ -74,3 +74,3 @@

}
}
};

@@ -95,3 +95,3 @@ // primitive methods that deals with data representation

return (key === "__proto__" ?
this.hasProto && this.proto :
this.proto :
(hasOwnProperty.call(this.obj, key) ? this.obj[key] : undefined));

@@ -118,3 +118,4 @@ };

if (key === "__proto__") {
this.hasProto = this.proto = undefined;
this.hasProto = false;
this.proto = undefined;
} else {

@@ -234,3 +235,4 @@ delete this.obj[key];

}).join(",") + "}";
}
};
return stringmap;

@@ -237,0 +239,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