Comparing version 1.0.1 to 1.0.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86344
75