turn SEA on by default & make shim deps not optional via @danfinlay @kumavis

This commit is contained in:
Mark Nadal 2018-11-29 02:03:38 -08:00
parent 3a376a5e85
commit 82deba55a3
3 changed files with 10 additions and 1 deletions

View File

@ -12,6 +12,7 @@
require('./store');
require('./rs3');
require('./wire');
try{require('../sea');}catch(e){}
//try{require('../axe');}catch(e){}
require('./file');
require('./evict');

View File

@ -50,6 +50,7 @@
"dependencies": {
"@trust/webcrypto": "^0.9.2",
"text-encoding": "^0.6.4",
"node-webcrypto-ossl": "^1.0.38",
"ws": "~>5.2.0"
},
"devDependencies": {
@ -58,7 +59,6 @@
"express": ">=4.15.2",
"ip": "^1.1.5",
"mocha": ">=3.2.0",
"node-webcrypto-ossl": "^1.0.38",
"panic-manager": "^1.2.0",
"panic-server": "^1.1.1",
"uglify-js": ">=2.8.22"

8
sea.js
View File

@ -301,6 +301,7 @@
return r;
} catch(e) {
SEA.err = e;
if(SEA.throw){ throw e }
if(cb){ cb() }
return;
}});
@ -320,6 +321,7 @@
} catch(e) {
console.log(e);
SEA.err = e;
if(SEA.throw){ throw e }
if(cb){ cb() }
return;
}});
@ -374,6 +376,7 @@
} catch(e) {
console.log(e);
SEA.err = e;
if(SEA.throw){ throw e }
if(cb){ cb() }
return;
}});
@ -415,6 +418,7 @@
} catch(e) {
console.log(e);
SEA.err = e;
if(SEA.throw){ throw e }
if(cb){ cb() }
return;
}});
@ -456,6 +460,7 @@
} catch(e) {
console.log(e); // mismatched owner FOR MARTTI
SEA.err = e;
if(SEA.throw){ throw e }
if(cb){ cb() }
return;
}});
@ -506,6 +511,7 @@
return r;
} catch(e) {
SEA.err = e;
if(SEA.throw){ throw e }
if(cb){ cb() }
return;
}});
@ -537,6 +543,7 @@
return r;
} catch(e) {
SEA.err = e;
if(SEA.throw){ throw e }
if(cb){ cb() }
return;
}});
@ -575,6 +582,7 @@
return r;
} catch(e) {
SEA.err = e;
if(SEA.throw){ throw e }
if(cb){ cb() }
return;
}});