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.0.3 to 2.1.0

2

lib/event.js

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

exports.createEvent = createEvent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvZXZlbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFjQTtJQWlCRSxlQUFZLE1BQWdCLEVBQUUsSUFBWSxFQUFFLElBQWdCO1FBTHJELFlBQU8sR0FBWSxJQUFJLENBQUM7UUFDeEIsWUFBTyxHQUFZLEtBQUssQ0FBQztRQUN6QixxQkFBZ0IsR0FBWSxLQUFLLENBQUM7UUFDbEMsb0JBQWUsR0FBaUMsSUFBSSxDQUFDO1FBRzFELElBQUksSUFBSTtZQUFFLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxDQUFDO1FBQ3BDLElBQUksQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQUFDO1FBQ3JCLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO0lBQ25CLENBQUM7SUFwQmEsYUFBTyxHQUFyQixVQUFzQixDQUFNO1FBQzFCLElBQU0sQ0FBQyxHQUFHLENBQVUsQ0FBQztRQUNyQixPQUFPLENBQUMsSUFBSSxJQUFJLElBQUksQ0FBQyxDQUFDLDBCQUEwQixLQUFLLElBQUksQ0FBQztJQUM1RCxDQUFDO0lBRUQsc0JBQVcsNkNBQTBCO2FBQXJDO1lBQ0UsT0FBTyxJQUFJLENBQUM7UUFDZCxDQUFDOzs7T0FBQTtJQWVNLCt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G4gIHB1YmxpYyBzdG9wSW1tZWRpYXRlUHJvcGFnYXRpb24oKSB7XG4gICAgdGhpcy5zdG9wcGVkID0gdHJ1ZTtcbiAgICByZXR1cm4gdGhpcztcbiAgfVxuXG4gIHB1YmxpYyBwcmV2ZW50RGVmYXVsdCgpIHtcbiAgICB0aGlzLmRlZmF1bHRQcmV2ZW50ZWQgPSB0cnVlO1xuICAgIHJldHVybiB0aGlzO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBjcmVhdGVFdmVudDxUPih0YXJnZXQ6IE9ic2VydmVyLCB0eXBlOiBzdHJpbmcsIGRhdGE/OiBFdmVudERhdGE8VD4gfCBudWxsKSB7XG4gIHJldHVybiBuZXcgRXZlbnQodGFyZ2V0LCB0eXBlLCBkYXRhKSBhcyBDdXN0b21FdmVudDxUPjtcbn1cbiJdfQ==

@@ -24,3 +24,3 @@ /// <reference types="node" />

fire<T>(event: string | CustomEvent<T>, ...args: any[]): Promise<void>;
private _fire<T>(event, ...args);
private _fire;
}
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
}
return function (d, b) {

@@ -183,6 +186,6 @@ extendStatics(d, b);

return fireObserver(this).then(function () {
var _a;
if (!event.defaultPrevented && event.defaultListener) {
return (_a = event.defaultListener).call.apply(_a, __spread([null, event], args));
}
var _a;
}).then(function () { });

@@ -199,2 +202,2 @@ };

exports.Observer = Observer;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JzZXJ2ZXIuanMiLCJzb3VyY2VSb290Ij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XJzW2ldO1xuXG4gICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoKVxuICAgICAgICAgIC50aGVuKCgpID0+IGxpc3RlbmVyLmNhbGwob2JzZXJ2ZXIsIGV2ZW50LCAuLi5hcmdzKSlcbiAgICAgICAgICAudGhlbihuZXh0TGlzdGVuZXIpO1xuICAgICAgfTtcblxuICAgICAgcmV0dXJuIG5leHRMaXN0ZW5lcigpO1xuICAgIH07XG5cbiAgICByZXR1cm4gZmlyZU9ic2VydmVyKHRoaXMpLnRoZW4oKCkgPT4ge1xuICAgICAgaWYgKCFldmVudC5kZWZhdWx0UHJldmVudGVkICYmIGV2ZW50LmRlZmF1bHRMaXN0ZW5lcikge1xuICAgICAgICByZXR1cm4gZXZlbnQuZGVmYXVsdExpc3RlbmVyLmNhbGwobnVsbCwgZXZlbnQsIC4uLmFyZ3MpO1xuICAgICAgfVxuICAgIH0pLnRoZW4oKCkgPT4ge30pO1xuICB9XG59XG4iXX0=
{
"name": "@pagedip/lib-observer",
"version": "2.0.3",
"version": "2.1.0",
"author": "Tyler Johnson <tyler@beneaththeink.com>",

@@ -14,7 +14,7 @@ "repository": {

"build:full": "npm-run-all clean build",
"build": "tsc -p tsconfig.build.json",
"prepare": "npm run build"
"build": "tsc",
"prepack": "npm run build"
},
"dependencies": {
"@pagedip/util-prop-helpers": "^1.1.2"
"@pagedip/util-prop-helpers": "^1.2.0"
},

@@ -24,3 +24,3 @@ "devDependencies": {

"shx": "^0.3.2",
"typescript": "~2.8.4"
"typescript": "^3.0.1"
},

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

],
"gitHead": "19ffe3a5cf92f20852ff7763dc12ed126c9c5ebe"
"gitHead": "1e9b4a816a6455730bc1a3a1ab90ff2eb2a33895"
}
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