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

@pagedip/lib-observer

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pagedip/lib-observer - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

CHANGELOG.md

2

lib/event.js

@@ -44,2 +44,2 @@ "use strict";

exports.createEvent = createEvent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvZXZlbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFjQTtJQWlCRSxlQUFZLE1BQWdCLEVBQUUsSUFBWSxFQUFFLElBQWdCO1FBTHJELFlBQU8sR0FBWSxJQUFJLENBQUM7UUFDeEIsWUFBTyxHQUFZLEtBQUssQ0FBQztRQUN6QixxQkFBZ0IsR0FBWSxLQUFLLENBQUM7UUFDbEMsb0JBQWUsR0FBaUMsSUFBSSxDQUFDO1FBRzFELElBQUksSUFBSTtZQUFFLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxDQUFDO1FBQ3BDLElBQUksQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQUFDO1FBQ3JCLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO0lBQ25CLENBQUM7SUFwQmEsYUFBTyxHQUFyQixVQUFzQixDQUFNO1FBQzFCLElBQU0sQ0FBQyxHQUFHLENBQVUsQ0FBQztRQUNyQixPQUFPLENBQUMsSUFBSSxJQUFJLElBQUksQ0FBQyxDQUFDLDBCQUEwQixLQUFLLElBQUksQ0FBQztJQUM1RCxDQUFDO0lBRUQsc0JBQVcsNkNBQTBCO2FBQXJDO1lBQ0UsT0FBTyxJQUFJLENBQUM7UUFDZCxDQUFDOzs7T0FBQ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XR1cm4gdGhpcztcbiAgfVxuXG4gIHB1YmxpYyBwcmV2ZW50RGVmYXVsdCgpIHtcbiAgICB0aGlzLmRlZmF1bHRQcmV2ZW50ZWQgPSB0cnVlO1xuICAgIHJldHVybiB0aGlzO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBjcmVhdGVFdmVudDxUPih0YXJnZXQ6IE9ic2VydmVyLCB0eXBlOiBzdHJpbmcsIGRhdGE/OiBFdmVudERhdGE8VD4gfCBudWxsKSB7XG4gIHJldHVybiBuZXcgRXZlbnQodGFyZ2V0LCB0eXBlLCBkYXRhKSBhcyBDdXN0b21FdmVudDxUPjtcbn1cbiJdfQ==
//# sourceMappingURL=event.js.map

@@ -8,2 +8,2 @@ "use strict";

__export(require("./event"));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxnQ0FBMkI7QUFDM0IsNkJBQXdCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vb2JzZXJ2ZXJcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2V2ZW50XCI7XG4iXX0=
//# sourceMappingURL=index.js.map

@@ -188,2 +188,2 @@ "use strict";

exports.Observer = Observer;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JzZXJ2ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvb2JzZXJ2ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxpQ0FBZ0Y7QUFDaEYsaUNBQW9DO0FBWXBDO0lBQThCLDRCQUFZO0lBYX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AgfTtcblxuICAgICAgcmV0dXJuIG5leHRMaXN0ZW5lcigpO1xuICAgIH07XG5cbiAgICByZXR1cm4gZmlyZU9ic2VydmVyKHRoaXMpLnRoZW4oKCkgPT4ge1xuICAgICAgaWYgKCFldmVudC5kZWZhdWx0UHJldmVudGVkICYmIGV2ZW50LmRlZmF1bHRMaXN0ZW5lcikge1xuICAgICAgICByZXR1cm4gZXZlbnQuZGVmYXVsdExpc3RlbmVyLmNhbGwobnVsbCwgZXZlbnQsIC4uLmFyZ3MpO1xuICAgICAgfVxuICAgIH0pLnRoZW4oKCkgPT4ge30pO1xuICB9XG59XG4iXX0=
//# sourceMappingURL=observer.js.map
{
"name": "@pagedip/lib-observer",
"version": "2.1.1",
"version": "2.1.2",
"author": "Tyler Johnson <tyler@beneaththeink.com>",

@@ -15,3 +15,3 @@ "repository": {

"build": "tsc",
"prepack": "npm run build"
"prepare": "npm run build"
},

@@ -22,3 +22,3 @@ "dependencies": {},

"shx": "^0.3.2",
"typescript": "^3.0.1"
"typescript": "^3.0.3"
},

@@ -28,3 +28,3 @@ "files": [

],
"gitHead": "951123f4da5fbab6785eca9060bee18e8fe44d16"
}
"gitHead": "f8a3ea4610db92dd0b817e209374abf271c8e0da"
}
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