Skip to content

Commit

Permalink
PharmaLedger-IMI/epi-workspace#1062 dispatch "error" events when db c…
Browse files Browse the repository at this point in the history
…annot to be initialised
  • Loading branch information
skutner committed Dec 7, 2022
1 parent 685ef06 commit 8ba4ba7
Show file tree
Hide file tree
Showing 17 changed files with 5,208 additions and 5,071 deletions.
7 changes: 6 additions & 1 deletion env.json
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
{}
{
"DEV": true,
"VAULT_DOMAIN":"vault",
"BUILD_SECRET_KEY": "nosecretfordevelopers",
"OPENDSU_ENABLE_DEBUG": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"tests": "npm run smoke-tests",
"freeze": "node ./node_modules/octopus/scripts/freeze",
"tag-freeze": "node ./node_modules/octopus/scripts/tagFreeze.js",
"smoke-tests": "npm run build && node ./psknode/bin/scripts/testrunner.js --config=./smoke-test-suites.json"
"smoke-tests": "npm run build && node ./node_modules/octopus/scripts/setEnv --file=../../../env.json \"node ./psknode/bin/scripts/testrunner.js --config=./smoke-test-suites.json\""
},
"repository": {
"type": "git",
Expand Down
36 changes: 23 additions & 13 deletions psknode/bundles/bindableModel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bindableModelRequire=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({"/home/runner/work/opendsu-sdk/opendsu-sdk/builds/tmp/bindableModel.js":[function(require,module,exports){
bindableModelRequire=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/builds/tmp/bindableModel.js":[function(require,module,exports){
(function (global){(function (){
if (typeof window !== "undefined" && typeof window.process === "undefined") {
window.process = {};
Expand All @@ -12,7 +12,7 @@ require("./bindableModel_intermediar");

}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})

},{"./bindableModel_intermediar":"/home/runner/work/opendsu-sdk/opendsu-sdk/builds/tmp/bindableModel_intermediar.js"}],"/home/runner/work/opendsu-sdk/opendsu-sdk/builds/tmp/bindableModel_intermediar.js":[function(require,module,exports){
},{"./bindableModel_intermediar":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/builds/tmp/bindableModel_intermediar.js"}],"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/builds/tmp/bindableModel_intermediar.js":[function(require,module,exports){
(function (global){(function (){
global.bindableModelLoadModules = function(){

Expand Down Expand Up @@ -42,12 +42,18 @@ if (typeof $$ !== "undefined") {

}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})

},{"overwrite-require":"overwrite-require","psk-bindable-model":"psk-bindable-model","queue":"queue","soundpubsub":"soundpubsub"}],"/home/runner/work/opendsu-sdk/opendsu-sdk/modules/overwrite-require/Logger.js":[function(require,module,exports){
},{"overwrite-require":"overwrite-require","psk-bindable-model":"psk-bindable-model","queue":"queue","soundpubsub":"soundpubsub"}],"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/modules/overwrite-require/Logger.js":[function(require,module,exports){
const envTypes = require("./moduleConstants");
const originalConsole = Object.assign({}, console);
const DEBUG_LOG_ENABLED = process.env.OPENDSU_ENABLE_DEBUG === "true";

if ($$.environmentType === envTypes.NODEJS_ENVIRONMENT_TYPE) {
const logger = new Logger("Logger", "overwrite-require");
logger.log = logger.trace;
if (DEBUG_LOG_ENABLED) {
logger.log = logger.debug;
} else {
logger.log = () => {}
}
Object.assign(console, logger);
}

Expand Down Expand Up @@ -146,7 +152,7 @@ function Logger(className, moduleName, logFile) {
functionName = functions.ERROR;
}

if (functionName === functions.TRACE || functionName === functions.AUDIT) {
if (functionName === functions.AUDIT) {
functionName = functions.LOG;
}

Expand Down Expand Up @@ -198,6 +204,10 @@ function Logger(className, moduleName, logFile) {
printToConsoleAndFile(functions[fnName], ...args);
}
}

if (!DEBUG_LOG_ENABLED) {
this[functions.TRACE] = this[functions.DEBUG] = () => {};
}
}

const getLogger = (className, moduleName, criticalLogFile) => {
Expand All @@ -208,7 +218,7 @@ module.exports = {
getLogger
}

},{"./moduleConstants":"/home/runner/work/opendsu-sdk/opendsu-sdk/modules/overwrite-require/moduleConstants.js","fs":false,"os":false,"path":false}],"/home/runner/work/opendsu-sdk/opendsu-sdk/modules/overwrite-require/moduleConstants.js":[function(require,module,exports){
},{"./moduleConstants":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/modules/overwrite-require/moduleConstants.js","fs":false,"os":false,"path":false}],"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/modules/overwrite-require/moduleConstants.js":[function(require,module,exports){
module.exports = {
BROWSER_ENVIRONMENT_TYPE: 'browser',
MOBILE_BROWSER_ENVIRONMENT_TYPE: 'mobile-browser',
Expand All @@ -219,7 +229,7 @@ module.exports = {
NODEJS_ENVIRONMENT_TYPE: 'nodejs'
};

},{}],"/home/runner/work/opendsu-sdk/opendsu-sdk/modules/overwrite-require/standardGlobalSymbols.js":[function(require,module,exports){
},{}],"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/modules/overwrite-require/standardGlobalSymbols.js":[function(require,module,exports){
(function (global){(function (){
let logger = console;

Expand Down Expand Up @@ -542,7 +552,7 @@ $$.registerGlobalSymbol("throttlingEvent", function (...args) {

}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})

},{"buffer":false,"psklogger":false,"swarmutils":false}],"/home/runner/work/opendsu-sdk/opendsu-sdk/modules/psk-bindable-model/lib/PskBindableModel.js":[function(require,module,exports){
},{"buffer":false,"psklogger":false,"swarmutils":false}],"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/modules/psk-bindable-model/lib/PskBindableModel.js":[function(require,module,exports){
const SoundPubSub = require("soundpubsub").soundPubSub;
const CHAIN_CHANGED = 'chainChanged';
const WILDCARD = "*";
Expand Down Expand Up @@ -1029,7 +1039,7 @@ class PskBindableModel {

module.exports = PskBindableModel;

},{"soundpubsub":"soundpubsub"}],"/home/runner/work/opendsu-sdk/opendsu-sdk/modules/soundpubsub/lib/soundPubSub.js":[function(require,module,exports){
},{"soundpubsub":"soundpubsub"}],"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/modules/soundpubsub/lib/soundPubSub.js":[function(require,module,exports){
/*
Initial License: (c) Axiologic Research & Alboaie Sînică.
Contributors: Axiologic Research , PrivateSky project
Expand Down Expand Up @@ -1864,9 +1874,9 @@ module.exports = {

}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})

},{"./Logger":"/home/runner/work/opendsu-sdk/opendsu-sdk/modules/overwrite-require/Logger.js","./moduleConstants":"/home/runner/work/opendsu-sdk/opendsu-sdk/modules/overwrite-require/moduleConstants.js","./standardGlobalSymbols.js":"/home/runner/work/opendsu-sdk/opendsu-sdk/modules/overwrite-require/standardGlobalSymbols.js"}],"psk-bindable-model":[function(require,module,exports){
},{"./Logger":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/modules/overwrite-require/Logger.js","./moduleConstants":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/modules/overwrite-require/moduleConstants.js","./standardGlobalSymbols.js":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/modules/overwrite-require/standardGlobalSymbols.js"}],"psk-bindable-model":[function(require,module,exports){
module.exports = require("./lib/PskBindableModel");
},{"./lib/PskBindableModel":"/home/runner/work/opendsu-sdk/opendsu-sdk/modules/psk-bindable-model/lib/PskBindableModel.js"}],"queue":[function(require,module,exports){
},{"./lib/PskBindableModel":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/modules/psk-bindable-model/lib/PskBindableModel.js"}],"queue":[function(require,module,exports){
function QueueElement(content) {
this.content = content;
this.next = null;
Expand Down Expand Up @@ -1939,9 +1949,9 @@ module.exports = Queue;
module.exports = {
soundPubSub: require("./lib/soundPubSub").soundPubSub
};
},{"./lib/soundPubSub":"/home/runner/work/opendsu-sdk/opendsu-sdk/modules/soundpubsub/lib/soundPubSub.js"}]},{},["/home/runner/work/opendsu-sdk/opendsu-sdk/builds/tmp/bindableModel.js"])
},{"./lib/soundPubSub":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/modules/soundpubsub/lib/soundPubSub.js"}]},{},["/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/builds/tmp/bindableModel.js"])
;(function(global) {
global.bundlePaths = {"webshims":"/home/runner/work/opendsu-sdk/opendsu-sdk/psknode/bundles/webshims.js","pskruntime":"/home/runner/work/opendsu-sdk/opendsu-sdk/psknode/bundles/pskruntime.js","pskWebServer":"/home/runner/work/opendsu-sdk/opendsu-sdk/psknode/bundles/pskWebServer.js","consoleTools":"/home/runner/work/opendsu-sdk/opendsu-sdk/psknode/bundles/consoleTools.js","blockchain":"/home/runner/work/opendsu-sdk/opendsu-sdk/psknode/bundles/blockchain.js","openDSU":"/home/runner/work/opendsu-sdk/opendsu-sdk/psknode/bundles/openDSU.js","nodeBoot":"/home/runner/work/opendsu-sdk/opendsu-sdk/psknode/bundles/nodeBoot.js","testsRuntime":"/home/runner/work/opendsu-sdk/opendsu-sdk/psknode/bundles/testsRuntime.js","bindableModel":"/home/runner/work/opendsu-sdk/opendsu-sdk/psknode/bundles/bindableModel.js","loaderBoot":"/home/runner/work/opendsu-sdk/opendsu-sdk/psknode/bundles/loaderBoot.js","swBoot":"/home/runner/work/opendsu-sdk/opendsu-sdk/psknode/bundles/swBoot.js","iframeBoot":"/home/runner/work/opendsu-sdk/opendsu-sdk/psknode/bundles/iframeBoot.js","launcherBoot":"/home/runner/work/opendsu-sdk/opendsu-sdk/psknode/bundles/launcherBoot.js","testRunnerBoot":"/home/runner/work/opendsu-sdk/opendsu-sdk/psknode/bundles/testRunnerBoot.js"};
global.bundlePaths = {"webshims":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/psknode/bundles/webshims.js","pskruntime":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/psknode/bundles/pskruntime.js","pskWebServer":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/psknode/bundles/pskWebServer.js","consoleTools":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/psknode/bundles/consoleTools.js","blockchain":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/psknode/bundles/blockchain.js","openDSU":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/psknode/bundles/openDSU.js","nodeBoot":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/psknode/bundles/nodeBoot.js","testsRuntime":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/psknode/bundles/testsRuntime.js","bindableModel":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/psknode/bundles/bindableModel.js","loaderBoot":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/psknode/bundles/loaderBoot.js","swBoot":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/psknode/bundles/swBoot.js","iframeBoot":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/psknode/bundles/iframeBoot.js","launcherBoot":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/psknode/bundles/launcherBoot.js","testRunnerBoot":"/home/skutner/WebstormProjects/work/epi-28-11/opendsu-sdk/psknode/bundles/testRunnerBoot.js"};
})(typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});

export default bindableModelRequire('psk-bindable-model')
6 changes: 3 additions & 3 deletions psknode/bundles/blockchain.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8ba4ba7

Please # to comment.