@superset-ui/switchboard
Advanced tools
Comparing version 0.20.2 to 0.20.3
@@ -1,2 +0,2 @@ | ||
(function () {var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;enterModule && enterModule(module);})();var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {return a;}; /* | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
@@ -22,4 +22,4 @@ * or more contributor license agreements. See the NOTICE file | ||
export * from './switchboard';const _default = | ||
Switchboard;export default _default;;(function () {var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;if (!reactHotLoader) {return;}reactHotLoader.register(_default, "default", "/Users/evan_1/GitHub/superset/superset-frontend/packages/superset-ui-switchboard/src/index.ts");})();;(function () {var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;leaveModule && leaveModule(module);})(); | ||
export * from './switchboard'; | ||
export default Switchboard; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
(function () {var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;enterModule && enterModule(module);})();var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {return a;}; /* | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
@@ -276,6 +276,6 @@ * or more contributor license agreements. See the NOTICE file | ||
return `m_${this.name}_${this.incrementor++}`; | ||
} // @ts-ignore | ||
__reactstandin__regenerateByEval(key, code) {// @ts-ignore | ||
this[key] = eval(code);}}const _default = | ||
new Switchboard();export default _default;;(function () {var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;if (!reactHotLoader) {return;}reactHotLoader.register(isGet, "isGet", "/Users/evan_1/GitHub/superset/superset-frontend/packages/superset-ui-switchboard/src/switchboard.ts");reactHotLoader.register(isReply, "isReply", "/Users/evan_1/GitHub/superset/superset-frontend/packages/superset-ui-switchboard/src/switchboard.ts");reactHotLoader.register(isEmit, "isEmit", "/Users/evan_1/GitHub/superset/superset-frontend/packages/superset-ui-switchboard/src/switchboard.ts");reactHotLoader.register(isError, "isError", "/Users/evan_1/GitHub/superset/superset-frontend/packages/superset-ui-switchboard/src/switchboard.ts");reactHotLoader.register(Switchboard, "Switchboard", "/Users/evan_1/GitHub/superset/superset-frontend/packages/superset-ui-switchboard/src/switchboard.ts");reactHotLoader.register(_default, "default", "/Users/evan_1/GitHub/superset/superset-frontend/packages/superset-ui-switchboard/src/switchboard.ts");})();;(function () {var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;leaveModule && leaveModule(module);})(); | ||
} | ||
} | ||
export default new Switchboard(); | ||
//# sourceMappingURL=switchboard.js.map |
@@ -1,2 +0,2 @@ | ||
(function () {var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;enterModule && enterModule(module);})();import _setImmediate from "@babel/runtime-corejs3/core-js-stable/set-immediate";var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {return a;}; /* | ||
import _setImmediate from "@babel/runtime-corejs3/core-js-stable/set-immediate"; /* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
@@ -84,5 +84,5 @@ * or more contributor license agreements. See the NOTICE file | ||
this. | ||
onmessageerror = null;}dispatchEvent(event) {if (this.isStarted) {this.listeners.forEach((listener) => {try {listener(event);} catch (err) {if (typeof this.onmessageerror === 'function') {this.onmessageerror(err);}}});} else {this.queue.push(event);}return true;}addEventListener(eventType, handler) {this.listeners.add(handler);}removeEventListener(eventType, handler) {this.listeners.delete(handler);}postMessage(data) {this.otherPort.dispatchEvent({ data });}start() {if (this.isStarted) return;this.isStarted = true;this.queue.forEach((event) => {this.dispatchEvent(event);});this.queue = [];}close() {this.isStarted = false;} // @ts-ignore | ||
__reactstandin__regenerateByEval(key, code) {// @ts-ignore | ||
this[key] = eval(code);}} | ||
onmessageerror = null;}dispatchEvent(event) {if (this.isStarted) {this.listeners.forEach((listener) => {try {listener(event);} catch (err) {if (typeof this.onmessageerror === 'function') {this.onmessageerror(err);}}});} else {this.queue.push(event);}return true;}addEventListener(eventType, handler) {this.listeners.add(handler);}removeEventListener(eventType, handler) {this.listeners.delete(handler);}postMessage(data) {this.otherPort.dispatchEvent({ data });}start() {if (this.isStarted) return;this.isStarted = true;this.queue.forEach((event) => {this.dispatchEvent(event);});this.queue = [];}close() {this.isStarted = false;} | ||
} | ||
/** Matches the MessageChannel api as closely as necessary (an even smaller api than MessagePort) */ | ||
@@ -101,5 +101,5 @@ class FakeMessageChannel { | ||
this.port2 = port2; | ||
} // @ts-ignore | ||
__reactstandin__regenerateByEval(key, code) {// @ts-ignore | ||
this[key] = eval(code);}} | ||
} | ||
} | ||
describe('comms', () => { | ||
@@ -299,3 +299,3 @@ let originalConsoleDebug = null; | ||
await expect(ours.get('someMethod')).rejects.toThrowError( | ||
await expect(ours.get('someMethod')).rejects.toThrow( | ||
'Unexpected response message' | ||
@@ -340,3 +340,3 @@ ); | ||
}); | ||
});;(function () {var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;if (!reactHotLoader) {return;}reactHotLoader.register(FakeMessagePort, "FakeMessagePort", "/Users/evan_1/GitHub/superset/superset-frontend/packages/superset-ui-switchboard/src/switchboard.test.ts");reactHotLoader.register(FakeMessageChannel, "FakeMessageChannel", "/Users/evan_1/GitHub/superset/superset-frontend/packages/superset-ui-switchboard/src/switchboard.test.ts");})();;(function () {var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;leaveModule && leaveModule(module);})(); | ||
}); | ||
//# sourceMappingURL=switchboard.test.js.map |
@@ -297,3 +297,3 @@ (function () {var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;enterModule && enterModule(module);})();import _setImmediate from "@babel/runtime-corejs3/core-js-stable/set-immediate";var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {return a;}; /* | ||
await expect(ours.get('someMethod')).rejects.toThrowError( | ||
await expect(ours.get('someMethod')).rejects.toThrow( | ||
'Unexpected response message' | ||
@@ -300,0 +300,0 @@ ); |
{ | ||
"name": "@superset-ui/switchboard", | ||
"version": "0.20.2", | ||
"version": "0.20.3", | ||
"description": "Switchboard is a library to make it easier to communicate across browser windows using the MessageChannel API", | ||
@@ -34,3 +34,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "db0756d461d1afef791007fcb55c0b0805aac5eb" | ||
"gitHead": "5373b41d3513b469b9a988c358ccc78f317e5a4c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
107803
4
1031