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

updatable

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

updatable - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

dist/index.js

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

!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e){function n(t,e){this.value=null,null!=t&&(this.value=t),this.listeners=[],e&&r(e)&&this.listeners.push(e)}function r(t){var e={};return t&&"[object Function]"===e.toString.call(t)}n.prototype.addListener=function(t){t&&r(t)&&this.listeners.push(t)},n.prototype.update=function(t){this.value=t;for(var e=0;e<this.listeners.length;e++)this.listeners[e](t)},n.prototype.setListener=function(t){t&&r(t)&&(this.listeners=[t])},n.prototype.getValue=function(){return this.value},t.exports=n}]);
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.updatable=e():t.updatable=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e){function n(t,e){this.value=null,null!=t&&(this.value=t),this.listeners=[],e&&o(e)&&this.listeners.push(e)}function o(t){var e={};return t&&"[object Function]"===e.toString.call(t)}n.prototype.addListener=function(t){t&&o(t)&&this.listeners.push(t)},n.prototype.update=function(t){this.value=t;for(var e=0;e<this.listeners.length;e++)this.listeners[e](t)},n.prototype.setListener=function(t){t&&o(t)&&(this.listeners=[t])},n.prototype.getValue=function(){return this.value},t.exports=n}])});
{
"name": "updatable",
"version": "1.0.1",
"version": "1.0.2",
"description": "Updatable data type with listeners",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -13,4 +13,6 @@ var path = require('path');

path: path.resolve(__dirname, "dist"),
filename: 'index.js'
filename: 'index.js',
library: 'updatable',
libraryTarget: 'umd'
}
}

Sorry, the diff of this file is not supported yet

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