@beyond-js/kernel
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -10,3 +10,3 @@ define(["exports"], function (_exports) { | ||
"package": "@beyond-js/kernel", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"languages": { | ||
@@ -13,0 +13,0 @@ "supported": [], |
@@ -9,3 +9,3 @@ "use strict"; | ||
"package": "@beyond-js/kernel", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"languages": { | ||
@@ -12,0 +12,0 @@ "supported": [], |
@@ -9,3 +9,3 @@ System.register([], function (_export, _context) { | ||
"package": "@beyond-js/kernel", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"languages": { | ||
@@ -12,0 +12,0 @@ "supported": [], |
{ | ||
"amd": "./config.amd.js", | ||
"sjs": "./config.sjs.js", | ||
"browser": "./config.browser.mjs", | ||
"node": { | ||
"import": "./config.mjs", | ||
"require": "./config.cjs.js" | ||
}, | ||
"sjs": "./config.sjs.js" | ||
} | ||
} |
@@ -14,3 +14,3 @@ define(["exports", "module", "@beyond-js/kernel/bundle"], function (_exports, _amd_module, dependency_0) { | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/core" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/core" | ||
}, | ||
@@ -17,0 +17,0 @@ "type": "ts" |
@@ -16,3 +16,3 @@ "use strict"; | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/core" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/core" | ||
}, | ||
@@ -19,0 +19,0 @@ "type": "ts" |
@@ -27,3 +27,3 @@ System.register(["@beyond-js/kernel/bundle"], function (_export, _context) { | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/core" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/core" | ||
}, | ||
@@ -30,0 +30,0 @@ "type": "ts" |
@@ -14,3 +14,3 @@ define(["exports", "module", "@beyond-js/kernel/bundle"], function (_exports, _amd_module, dependency_0) { | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/error" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/error" | ||
}, | ||
@@ -17,0 +17,0 @@ "type": "ts" |
@@ -16,3 +16,3 @@ "use strict"; | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/error" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/error" | ||
}, | ||
@@ -19,0 +19,0 @@ "type": "ts" |
@@ -16,3 +16,3 @@ System.register(["@beyond-js/kernel/bundle"], function (_export, _context) { | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/error" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/error" | ||
}, | ||
@@ -19,0 +19,0 @@ "type": "ts" |
{ | ||
"name": "@beyond-js/kernel", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"license": "MIT", | ||
@@ -83,7 +83,8 @@ "keywords": [], | ||
"amd": "./config/config.amd.js", | ||
"sjs": "./config/config.sjs.js", | ||
"browser": "./config/config.browser.mjs", | ||
"node": { | ||
"import": "./config/config.mjs", | ||
"require": "./config/config.cjs.js" | ||
}, | ||
"sjs": "./config/config.sjs.js" | ||
} | ||
} | ||
@@ -90,0 +91,0 @@ }, |
@@ -14,3 +14,3 @@ define(["exports", "module", "@beyond-js/kernel/bundle", "@beyond-js/kernel/core"], function (_exports, _amd_module, dependency_0, dependency_1) { | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/routing" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/routing" | ||
}, | ||
@@ -351,3 +351,3 @@ "type": "ts" | ||
ims.set('./routing', { | ||
hash: 786969222, | ||
hash: 2780317025, | ||
creator: function (require, exports) { | ||
@@ -411,2 +411,4 @@ "use strict"; | ||
redirect; | ||
#resolveConfigured; | ||
#configured = new Promise(resolve => this.#resolveConfigured = resolve); | ||
@@ -428,2 +430,3 @@ constructor() { | ||
this.#history = new _history.BeyondHistory(this, RoutingMode); | ||
this.#resolveConfigured(); | ||
}); | ||
@@ -449,9 +452,13 @@ } | ||
pushState(uri, state) { | ||
this.#history.pushState(uri, state); | ||
this.update().catch(exc => console.error(exc.stack)); | ||
this.#configured.then(() => { | ||
this.#history.pushState(uri, state); | ||
this.update().catch(exc => console.error(exc.stack)); | ||
}); | ||
} | ||
replaceState(state, title, uri) { | ||
this.#history.replaceState(state, title, uri); | ||
this.update().catch(exc => console.error(exc.stack)); | ||
this.#configured.then(() => { | ||
this.#history.replaceState(state, title, uri); | ||
this.update().catch(exc => console.error(exc.stack)); | ||
}); | ||
} // Avoid to continue the execution on asynchronous calls, when a newest call's been made | ||
@@ -458,0 +465,0 @@ |
@@ -18,3 +18,3 @@ "use strict"; | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/routing" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/routing" | ||
}, | ||
@@ -355,3 +355,3 @@ "type": "ts" | ||
ims.set('./routing', { | ||
hash: 786969222, | ||
hash: 2780317025, | ||
creator: function (require, exports) { | ||
@@ -415,2 +415,4 @@ "use strict"; | ||
redirect; | ||
#resolveConfigured; | ||
#configured = new Promise(resolve => this.#resolveConfigured = resolve); | ||
@@ -432,2 +434,3 @@ constructor() { | ||
this.#history = new _history.BeyondHistory(this, RoutingMode); | ||
this.#resolveConfigured(); | ||
}); | ||
@@ -453,9 +456,13 @@ } | ||
pushState(uri, state) { | ||
this.#history.pushState(uri, state); | ||
this.update().catch(exc => console.error(exc.stack)); | ||
this.#configured.then(() => { | ||
this.#history.pushState(uri, state); | ||
this.update().catch(exc => console.error(exc.stack)); | ||
}); | ||
} | ||
replaceState(state, title, uri) { | ||
this.#history.replaceState(state, title, uri); | ||
this.update().catch(exc => console.error(exc.stack)); | ||
this.#configured.then(() => { | ||
this.#history.replaceState(state, title, uri); | ||
this.update().catch(exc => console.error(exc.stack)); | ||
}); | ||
} // Avoid to continue the execution on asynchronous calls, when a newest call's been made | ||
@@ -462,0 +469,0 @@ |
@@ -23,3 +23,3 @@ System.register(["@beyond-js/kernel/bundle", "@beyond-js/kernel/core"], function (_export, _context) { | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/routing" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/routing" | ||
}, | ||
@@ -359,3 +359,3 @@ "type": "ts" | ||
ims.set('./routing', { | ||
hash: 786969222, | ||
hash: 2780317025, | ||
creator: function (require, exports) { | ||
@@ -419,2 +419,4 @@ "use strict"; | ||
redirect; | ||
#resolveConfigured; | ||
#configured = new Promise(resolve => this.#resolveConfigured = resolve); | ||
@@ -436,2 +438,3 @@ constructor() { | ||
this.#history = new _history.BeyondHistory(this, RoutingMode); | ||
this.#resolveConfigured(); | ||
}); | ||
@@ -457,9 +460,13 @@ } | ||
pushState(uri, state) { | ||
this.#history.pushState(uri, state); | ||
this.update().catch(exc => console.error(exc.stack)); | ||
this.#configured.then(() => { | ||
this.#history.pushState(uri, state); | ||
this.update().catch(exc => console.error(exc.stack)); | ||
}); | ||
} | ||
replaceState(state, title, uri) { | ||
this.#history.replaceState(state, title, uri); | ||
this.update().catch(exc => console.error(exc.stack)); | ||
this.#configured.then(() => { | ||
this.#history.replaceState(state, title, uri); | ||
this.update().catch(exc => console.error(exc.stack)); | ||
}); | ||
} // Avoid to continue the execution on asynchronous calls, when a newest call's been made | ||
@@ -466,0 +473,0 @@ |
@@ -41,2 +41,5 @@ import {URI} from "./uri/uri"; | ||
#resolveConfigured: any; | ||
#configured = new Promise(resolve => this.#resolveConfigured = resolve); | ||
constructor() { | ||
@@ -58,2 +61,3 @@ super(); | ||
this.#history = new BeyondHistory(this, RoutingMode); | ||
this.#resolveConfigured(); | ||
}); | ||
@@ -79,9 +83,13 @@ } | ||
pushState(uri: string, state?: object): void { | ||
this.#history.pushState(uri, state); | ||
this.update().catch((exc) => console.error(exc.stack)); | ||
this.#configured.then(() => { | ||
this.#history.pushState(uri, state); | ||
this.update().catch((exc) => console.error(exc.stack)); | ||
}); | ||
}; | ||
replaceState(state: object, title: string, uri?: string): void { | ||
this.#history.replaceState(state, title, uri); | ||
this.update().catch((exc) => console.error(exc.stack)); | ||
this.#configured.then(() => { | ||
this.#history.replaceState(state, title, uri); | ||
this.update().catch((exc) => console.error(exc.stack)); | ||
}); | ||
}; | ||
@@ -88,0 +96,0 @@ |
@@ -14,3 +14,3 @@ define(["exports", "module", "@beyond-js/kernel/bundle", "@beyond-js/kernel/core"], function (_exports, _amd_module, dependency_0, dependency_1) { | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/styles" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/styles" | ||
}, | ||
@@ -17,0 +17,0 @@ "type": "ts" |
@@ -18,3 +18,3 @@ "use strict"; | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/styles" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/styles" | ||
}, | ||
@@ -21,0 +21,0 @@ "type": "ts" |
@@ -24,3 +24,3 @@ System.register(["@beyond-js/kernel/bundle", "@beyond-js/kernel/core"], function (_export, _context) { | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/styles" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/styles" | ||
}, | ||
@@ -27,0 +27,0 @@ "type": "ts" |
@@ -14,3 +14,3 @@ define(["exports", "module", "@beyond-js/kernel/bundle", "@beyond-js/kernel/core"], function (_exports, _amd_module, dependency_0, dependency_1) { | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/texts" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/texts" | ||
}, | ||
@@ -17,0 +17,0 @@ "type": "ts" |
@@ -18,3 +18,3 @@ "use strict"; | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/texts" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/texts" | ||
}, | ||
@@ -21,0 +21,0 @@ "type": "ts" |
@@ -23,3 +23,3 @@ System.register(["@beyond-js/kernel/bundle", "@beyond-js/kernel/core"], function (_export, _context) { | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/texts" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/texts" | ||
}, | ||
@@ -26,0 +26,0 @@ "type": "ts" |
@@ -14,3 +14,3 @@ define(["exports", "module", "@beyond-js/kernel/bundle"], function (_exports, _amd_module, dependency_0) { | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/transversals" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/transversals" | ||
}, | ||
@@ -17,0 +17,0 @@ "type": "ts" |
@@ -16,3 +16,3 @@ "use strict"; | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/transversals" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/transversals" | ||
}, | ||
@@ -19,0 +19,0 @@ "type": "ts" |
@@ -18,3 +18,3 @@ System.register(["@beyond-js/kernel/bundle"], function (_export, _context) { | ||
"module": { | ||
"vspecifier": "@beyond-js/kernel@0.1.1/transversals" | ||
"vspecifier": "@beyond-js/kernel@0.1.2/transversals" | ||
}, | ||
@@ -21,0 +21,0 @@ "type": "ts" |
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
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
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
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
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
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
918065
144
17244