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

element-data-store

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

element-data-store - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

4

dist/element-data-store.min.js

@@ -1,2 +0,2 @@

/*! element-data-store | license: MIT | version: 0.0.5 | build date: 2015-08-17 */
!function(a){"function"==typeof define&&define.amd?define(function(){return a()}):"object"==typeof exports?module.exports=a():window.elementDataStore=a()}(function(){function a(){this.dict={},this.uuid=1,this.namespace="DataStore"}var b;return a.prototype={get:function(a,b){return"undefined"==typeof b?this.retrieveStore(a):this.retrieveStore(a)[b]||null},set:function(a,b,c){return this.retrieveStore(a)[b]=c,c},remove:function(a,b){if("undefined"!=typeof b){var c=this.retrieveStore(a);c[b]&&delete c[b]}else{var d=a[this.namespace];d&&(delete this.dict[d],a[this.namespace]=null)}},retrieveStore:function(a){var b=this.namespace,c=a[b];return c||(c=a[b]=this.uuid++,this.dict[c]={}),this.dict[c]||{}}},function(){return b=b||new a}});
/*! element-data-store | license: MIT | version: 0.0.6 | build date: 2015-08-17 */
!function(a){"function"==typeof define&&define.amd?define(function(){return a()}):"object"==typeof exports?module.exports=a():window.elementDataStore=a()}(function(){function a(){this.dict={},this.uuid=1,this.namespace="DataStore"}var b;return a.prototype={get:function(a,b){return"undefined"==typeof b?this.retrieveStore(a):this.retrieveStore(a)[b]||null},set:function(a,b,c){return this.retrieveStore(a)[b]=c,c},remove:function(a,b){if("undefined"!=typeof b){var c=this.retrieveStore(a);c[b]&&delete c[b]}else{var d=a[this.namespace];d&&(delete this.dict[d],a[this.namespace]=null)}},retrieveStore:function(a){var b=this.namespace,c=a[b];return c||(c=a[b]=this.uuid++,this.dict[c]={}),this.dict[c]||{}}},b=b||new a});
{
"name": "element-data-store",
"version": "0.0.5",
"version": "0.0.6",
"description": "Simple library that provides an api to stores data for an element (similar to $.data in jQuery)",

@@ -5,0 +5,0 @@ "main": "src/element-data-store.js",

@@ -66,6 +66,4 @@ (function (factory) {

};
return function () {
return (instance = (instance || new ElementDataStore()));
};
return (instance = (instance || new ElementDataStore()));
});
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