@stencil/core 2.18.1 → 2.19.1-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/cli/index.cjs +16 -14
  2. package/cli/index.d.ts +2 -0
  3. package/cli/index.js +16 -14
  4. package/cli/package.json +1 -1
  5. package/compiler/package.json +1 -1
  6. package/compiler/stencil.js +1527 -1207
  7. package/compiler/stencil.min.js +2 -2
  8. package/dependencies.json +1 -1
  9. package/dev-server/client/index.js +1 -1
  10. package/dev-server/client/package.json +1 -1
  11. package/dev-server/connector.html +2 -2
  12. package/dev-server/index.js +1 -1
  13. package/dev-server/package.json +1 -1
  14. package/dev-server/server-process.js +2 -2
  15. package/internal/app-data/package.json +1 -1
  16. package/internal/client/css-shim.js +1 -1
  17. package/internal/client/dom.js +1 -1
  18. package/internal/client/index.js +1 -1
  19. package/internal/client/package.json +1 -1
  20. package/internal/client/patch-browser.js +1 -1
  21. package/internal/client/patch-esm.js +1 -1
  22. package/internal/client/shadow-css.js +1 -1
  23. package/internal/hydrate/package.json +1 -1
  24. package/internal/hydrate/runner.d.ts +1 -1
  25. package/internal/package.json +1 -1
  26. package/internal/stencil-private.d.ts +31 -12
  27. package/internal/stencil-public-compiler.d.ts +10 -0
  28. package/internal/stencil-public-docs.d.ts +24 -0
  29. package/internal/stencil-public-runtime.d.ts +5 -0
  30. package/internal/testing/package.json +1 -1
  31. package/mock-doc/index.cjs +16 -6
  32. package/mock-doc/index.js +16 -6
  33. package/mock-doc/package.json +1 -1
  34. package/package.json +11 -12
  35. package/screenshot/package.json +1 -1
  36. package/sys/node/autoprefixer.js +5 -5
  37. package/sys/node/graceful-fs.js +1 -1
  38. package/sys/node/index.d.ts +2 -0
  39. package/sys/node/index.js +93 -95
  40. package/sys/node/package.json +1 -1
  41. package/sys/node/prompts.js +1 -1
  42. package/sys/node/worker.js +1 -1
  43. package/testing/index.js +131 -130
  44. package/testing/package.json +1 -1
@@ -1 +1 @@
1
- !function(t,e){for(var n in e)t[n]=e[n]}(exports,function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){var r,o,c=n(2),i=n(3),u=n(5),f=n(7),s=n(8);function a(t,e){Object.defineProperty(t,r,{get:function(){return e}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(r=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",o="___graceful-fs.previous");var l=function(){};if(s.debuglog?l=s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(l=function(){var t=s.format.apply(s,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: "),console.error(t)}),!c[r]){var p=global[r]||[];a(c,p),c.close=function(t){function e(e,n){return t.call(c,e,(function(t){t||y(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(e,o,{value:t}),e}(c.close),c.closeSync=function(t){function e(e){t.apply(c,arguments),y()}return Object.defineProperty(e,o,{value:t}),e}(c.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){l(c[r]),n(9).equal(c[r].length,0)}))}function h(t){i(t),t.gracefulify=h,t.createReadStream=function(e,n){return new t.ReadStream(e,n)},t.createWriteStream=function(e,n){return new t.WriteStream(e,n)};var e=t.readFile;t.readFile=function(t,n,r){"function"==typeof n&&(r=n,n=null);return function t(n,r,o){return e(n,r,(function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?("function"==typeof o&&o.apply(this,arguments),y()):d([t,[n,r,o]])}))}(t,n,r)};var n=t.writeFile;t.writeFile=function(t,e,r,o){"function"==typeof r&&(o=r,r=null);return function t(e,r,o,c){return n(e,r,o,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"==typeof c&&c.apply(this,arguments),y()):d([t,[e,r,o,c]])}))}(t,e,r,o)};var r=t.appendFile;r&&(t.appendFile=function(t,e,n,o){"function"==typeof n&&(o=n,n=null);return function t(e,n,o,c){return r(e,n,o,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?("function"==typeof c&&c.apply(this,arguments),y()):d([t,[e,n,o,c]])}))}(t,e,n,o)});var o=t.copyFile;o&&(t.copyFile=function(t,e,n,r){"function"==typeof n&&(r=n,n=0);return o(t,e,n,(function(c){!c||"EMFILE"!==c.code&&"ENFILE"!==c.code?("function"==typeof r&&r.apply(this,arguments),y()):d([o,[t,e,n,r]])}))});var c=t.readdir;function f(e){return c.apply(t,e)}if(t.readdir=function(t,e,n){var r=[t];"function"!=typeof e?r.push(e):n=e;return r.push((function(t,e){e&&e.sort&&e.sort();!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?("function"==typeof n&&n.apply(this,arguments),y()):d([f,[r]])})),f(r)},"v0.8"===process.version.substr(0,4)){var s=u(t);b=s.ReadStream,S=s.WriteStream}var a=t.ReadStream;a&&(b.prototype=Object.create(a.prototype),b.prototype.open=function(){var t=this;O(t.path,t.flags,t.mode,(function(e,n){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n),t.read())}))});var l=t.WriteStream;l&&(S.prototype=Object.create(l.prototype),S.prototype.open=function(){var t=this;O(t.path,t.flags,t.mode,(function(e,n){e?(t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n))}))}),Object.defineProperty(t,"ReadStream",{get:function(){return b},set:function(t){b=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return S},set:function(t){S=t},enumerable:!0,configurable:!0});var p=b;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(t){p=t},enumerable:!0,configurable:!0});var m=S;function b(t,e){return this instanceof b?(a.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}function S(t,e){return this instanceof S?(l.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}Object.defineProperty(t,"FileWriteStream",{get:function(){return m},set:function(t){m=t},enumerable:!0,configurable:!0});var v=t.open;function O(t,e,n,r){return"function"==typeof n&&(r=n,n=null),function t(e,n,r,o){return v(e,n,r,(function(c,i){!c||"EMFILE"!==c.code&&"ENFILE"!==c.code?("function"==typeof o&&o.apply(this,arguments),y()):d([t,[e,n,r,o]])}))}(t,e,n,r)}return t.open=O,t}function d(t){l("ENQUEUE",t[0].name,t[1]),c[r].push(t)}function y(){var t=c[r].shift();t&&(l("RETRY",t[0].name,t[1]),t[0].apply(null,t[1]))}global[r]||a(global,c[r]),t.exports=h(f(c)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!c.__patched&&(t.exports=h(c),c.__patched=!0)},function(t,e){t.exports=require("fs")},function(t,e,n){var r=n(4),o=process.cwd,c=null,i=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return c||(c=o.call(process)),c};try{process.cwd()}catch(t){}if("function"==typeof process.chdir){var u=process.chdir;process.chdir=function(t){c=null,u.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u)}t.exports=function(t){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,n,o){t.open(e,r.O_WRONLY|r.O_SYMLINK,n,(function(e,r){e?o&&o(e):t.fchmod(r,n,(function(e){t.close(r,(function(t){o&&o(e||t)}))}))}))},t.lchmodSync=function(e,n){var o,c=t.openSync(e,r.O_WRONLY|r.O_SYMLINK,n),i=!0;try{o=t.fchmodSync(c,n),i=!1}finally{if(i)try{t.closeSync(c)}catch(t){}else t.closeSync(c)}return o}}(t);t.lutimes||function(t){r.hasOwnProperty("O_SYMLINK")?(t.lutimes=function(e,n,o,c){t.open(e,r.O_SYMLINK,(function(e,r){e?c&&c(e):t.futimes(r,n,o,(function(e){t.close(r,(function(t){c&&c(e||t)}))}))}))},t.lutimesSync=function(e,n,o){var c,i=t.openSync(e,r.O_SYMLINK),u=!0;try{c=t.futimesSync(i,n,o),u=!1}finally{if(u)try{t.closeSync(i)}catch(t){}else t.closeSync(i)}return c}):(t.lutimes=function(t,e,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t);t.chown=c(t.chown),t.fchown=c(t.fchown),t.lchown=c(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=u(t.chownSync),t.fchownSync=u(t.fchownSync),t.lchownSync=u(t.lchownSync),t.chmodSync=o(t.chmodSync),t.fchmodSync=o(t.fchmodSync),t.lchmodSync=o(t.lchmodSync),t.stat=f(t.stat),t.fstat=f(t.fstat),t.lstat=f(t.lstat),t.statSync=s(t.statSync),t.fstatSync=s(t.fstatSync),t.lstatSync=s(t.lstatSync),t.lchmod||(t.lchmod=function(t,e,n){n&&process.nextTick(n)},t.lchmodSync=function(){});t.lchown||(t.lchown=function(t,e,n,r){r&&process.nextTick(r)},t.lchownSync=function(){});"win32"===i&&(t.rename=(e=t.rename,function(n,r,o){var c=Date.now(),i=0;e(n,r,(function u(f){if(f&&("EACCES"===f.code||"EPERM"===f.code)&&Date.now()-c<6e4)return setTimeout((function(){t.stat(r,(function(t,c){t&&"ENOENT"===t.code?e(n,r,u):o(f)}))}),i),void(i<100&&(i+=10));o&&o(f)}))}));var e;function n(e){return e?function(n,r,o){return e.call(t,n,r,(function(t){a(t)&&(t=null),o&&o.apply(this,arguments)}))}:e}function o(e){return e?function(n,r){try{return e.call(t,n,r)}catch(t){if(!a(t))throw t}}:e}function c(e){return e?function(n,r,o,c){return e.call(t,n,r,o,(function(t){a(t)&&(t=null),c&&c.apply(this,arguments)}))}:e}function u(e){return e?function(n,r,o){try{return e.call(t,n,r,o)}catch(t){if(!a(t))throw t}}:e}function f(e){return e?function(n,r,o){function c(t,e){e&&(e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296)),o&&o.apply(this,arguments)}return"function"==typeof r&&(o=r,r=null),r?e.call(t,n,r,c):e.call(t,n,c)}:e}function s(e){return e?function(n,r){var o=r?e.call(t,n,r):e.call(t,n);return o.uid<0&&(o.uid+=4294967296),o.gid<0&&(o.gid+=4294967296),o}:e}function a(t){return!t||("ENOSYS"===t.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==t.code&&"EPERM"!==t.code))}t.read=function(e){function n(n,r,o,c,i,u){var f;if(u&&"function"==typeof u){var s=0;f=function(a,l,p){if(a&&"EAGAIN"===a.code&&s<10)return s++,e.call(t,n,r,o,c,i,f);u.apply(this,arguments)}}return e.call(t,n,r,o,c,i,f)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.read),t.readSync=(l=t.readSync,function(e,n,r,o,c){for(var i=0;;)try{return l.call(t,e,n,r,o,c)}catch(t){if("EAGAIN"===t.code&&i<10){i++;continue}throw t}});var l}},function(t,e){t.exports=require("constants")},function(t,e,n){var r=n(6).Stream;t.exports=function(t){return{ReadStream:function e(n,o){if(!(this instanceof e))return new e(n,o);r.call(this);var c=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,o=o||{};for(var i=Object.keys(o),u=0,f=i.length;u<f;u++){var s=i[u];this[s]=o[s]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){c._read()}));t.open(this.path,this.flags,this.mode,(function(t,e){if(t)return c.emit("error",t),void(c.readable=!1);c.fd=e,c.emit("open",e),c._read()}))},WriteStream:function e(n,o){if(!(this instanceof e))return new e(n,o);r.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var c=Object.keys(o),i=0,u=c.length;i<u;i++){var f=c[i];this[f]=o[f]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},function(t,e){t.exports=require("stream")},function(t,e,n){"use strict";t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var e={__proto__:r(t)};else e=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e};var r=Object.getPrototypeOf||function(t){return t.__proto__}},function(t,e){t.exports=require("util")},function(t,e){t.exports=require("assert")}]));
1
+ !function(t,e){for(var n in e)t[n]=e[n]}(exports,function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){var o,r,c=n(2),i=n(3),u=n(5),f=n(7),s=n(8);function a(t,e){Object.defineProperty(t,o,{get:function(){return e}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(o=Symbol.for("graceful-fs.queue"),r=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",r="___graceful-fs.previous");var l,p=function(){};if(s.debuglog?p=s.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var t=s.format.apply(s,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: "),console.error(t)}),!c[o]){var h=global[o]||[];a(c,h),c.close=function(t){function e(e,n){return t.call(c,e,(function(t){t||m(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(e,r,{value:t}),e}(c.close),c.closeSync=function(t){function e(e){t.apply(c,arguments),m()}return Object.defineProperty(e,r,{value:t}),e}(c.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){p(c[o]),n(9).equal(c[o].length,0)}))}function d(t){i(t),t.gracefulify=d,t.createReadStream=function(e,n){return new t.ReadStream(e,n)},t.createWriteStream=function(e,n){return new t.WriteStream(e,n)};var e=t.readFile;t.readFile=function(t,n,o){"function"==typeof n&&(o=n,n=null);return function t(n,o,r,c){return e(n,o,(function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?"function"==typeof r&&r.apply(this,arguments):y([t,[n,o,r],e,c||Date.now(),Date.now()])}))}(t,n,o)};var n=t.writeFile;t.writeFile=function(t,e,o,r){"function"==typeof o&&(r=o,o=null);return function t(e,o,r,c,i){return n(e,o,r,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof c&&c.apply(this,arguments):y([t,[e,o,r,c],n,i||Date.now(),Date.now()])}))}(t,e,o,r)};var o=t.appendFile;o&&(t.appendFile=function(t,e,n,r){"function"==typeof n&&(r=n,n=null);return function t(e,n,r,c,i){return o(e,n,r,(function(o){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof c&&c.apply(this,arguments):y([t,[e,n,r,c],o,i||Date.now(),Date.now()])}))}(t,e,n,r)});var r=t.copyFile;r&&(t.copyFile=function(t,e,n,o){"function"==typeof n&&(o=n,n=0);return function t(e,n,o,c,i){return r(e,n,o,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof c&&c.apply(this,arguments):y([t,[e,n,o,c],r,i||Date.now(),Date.now()])}))}(t,e,n,o)});var c=t.readdir;t.readdir=function(t,e,n){"function"==typeof e&&(n=e,e=null);var o=f.test(process.version)?function(t,e,n,o){return c(t,r(t,e,n,o))}:function(t,e,n,o){return c(t,e,r(t,e,n,o))};return o(t,e,n);function r(t,e,n,r){return function(c,i){!c||"EMFILE"!==c.code&&"ENFILE"!==c.code?(i&&i.sort&&i.sort(),"function"==typeof n&&n.call(this,c,i)):y([o,[t,e,n],c,r||Date.now(),Date.now()])}}};var f=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var s=u(t);m=s.ReadStream,b=s.WriteStream}var a=t.ReadStream;a&&(m.prototype=Object.create(a.prototype),m.prototype.open=function(){var t=this;v(t.path,t.flags,t.mode,(function(e,n){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n),t.read())}))});var l=t.WriteStream;l&&(b.prototype=Object.create(l.prototype),b.prototype.open=function(){var t=this;v(t.path,t.flags,t.mode,(function(e,n){e?(t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n))}))}),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(t){m=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return b},set:function(t){b=t},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(t){p=t},enumerable:!0,configurable:!0});var h=b;function m(t,e){return this instanceof m?(a.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function b(t,e){return this instanceof b?(l.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}Object.defineProperty(t,"FileWriteStream",{get:function(){return h},set:function(t){h=t},enumerable:!0,configurable:!0});var S=t.open;function v(t,e,n,o){return"function"==typeof n&&(o=n,n=null),function t(e,n,o,r,c){return S(e,n,o,(function(i,u){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof r&&r.apply(this,arguments):y([t,[e,n,o,r],i,c||Date.now(),Date.now()])}))}(t,e,n,o)}return t.open=v,t}function y(t){p("ENQUEUE",t[0].name,t[1]),c[o].push(t),b()}function m(){for(var t=Date.now(),e=0;e<c[o].length;++e)c[o][e].length>2&&(c[o][e][3]=t,c[o][e][4]=t);b()}function b(){if(clearTimeout(l),l=void 0,0!==c[o].length){var t=c[o].shift(),e=t[0],n=t[1],r=t[2],i=t[3],u=t[4];if(void 0===i)p("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-i>=6e4){p("TIMEOUT",e.name,n);var f=n.pop();"function"==typeof f&&f.call(null,r)}else{var s=Date.now()-u,a=Math.max(u-i,1);s>=Math.min(1.2*a,100)?(p("RETRY",e.name,n),e.apply(null,n.concat([i]))):c[o].push(t)}void 0===l&&(l=setTimeout(b,0))}}global[o]||a(global,c[o]),t.exports=d(f(c)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!c.__patched&&(t.exports=d(c),c.__patched=!0)},function(t,e){t.exports=require("fs")},function(t,e,n){var o=n(4),r=process.cwd,c=null,i=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return c||(c=r.call(process)),c};try{process.cwd()}catch(t){}if("function"==typeof process.chdir){var u=process.chdir;process.chdir=function(t){c=null,u.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u)}t.exports=function(t){o.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,n,r){t.open(e,o.O_WRONLY|o.O_SYMLINK,n,(function(e,o){e?r&&r(e):t.fchmod(o,n,(function(e){t.close(o,(function(t){r&&r(e||t)}))}))}))},t.lchmodSync=function(e,n){var r,c=t.openSync(e,o.O_WRONLY|o.O_SYMLINK,n),i=!0;try{r=t.fchmodSync(c,n),i=!1}finally{if(i)try{t.closeSync(c)}catch(t){}else t.closeSync(c)}return r}}(t);t.lutimes||function(t){o.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(e,n,r,c){t.open(e,o.O_SYMLINK,(function(e,o){e?c&&c(e):t.futimes(o,n,r,(function(e){t.close(o,(function(t){c&&c(e||t)}))}))}))},t.lutimesSync=function(e,n,r){var c,i=t.openSync(e,o.O_SYMLINK),u=!0;try{c=t.futimesSync(i,n,r),u=!1}finally{if(u)try{t.closeSync(i)}catch(t){}else t.closeSync(i)}return c}):t.futimes&&(t.lutimes=function(t,e,n,o){o&&process.nextTick(o)},t.lutimesSync=function(){})}(t);t.chown=r(t.chown),t.fchown=r(t.fchown),t.lchown=r(t.lchown),t.chmod=e(t.chmod),t.fchmod=e(t.fchmod),t.lchmod=e(t.lchmod),t.chownSync=c(t.chownSync),t.fchownSync=c(t.fchownSync),t.lchownSync=c(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=u(t.stat),t.fstat=u(t.fstat),t.lstat=u(t.lstat),t.statSync=f(t.statSync),t.fstatSync=f(t.fstatSync),t.lstatSync=f(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(t,e,n){n&&process.nextTick(n)},t.lchmodSync=function(){});t.chown&&!t.lchown&&(t.lchown=function(t,e,n,o){o&&process.nextTick(o)},t.lchownSync=function(){});"win32"===i&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function n(n,o,r){var c=Date.now(),i=0;e(n,o,(function u(f){if(f&&("EACCES"===f.code||"EPERM"===f.code)&&Date.now()-c<6e4)return setTimeout((function(){t.stat(o,(function(t,c){t&&"ENOENT"===t.code?e(n,o,u):r(f)}))}),i),void(i<100&&(i+=10));r&&r(f)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.rename));function e(e){return e?function(n,o,r){return e.call(t,n,o,(function(t){s(t)&&(t=null),r&&r.apply(this,arguments)}))}:e}function n(e){return e?function(n,o){try{return e.call(t,n,o)}catch(t){if(!s(t))throw t}}:e}function r(e){return e?function(n,o,r,c){return e.call(t,n,o,r,(function(t){s(t)&&(t=null),c&&c.apply(this,arguments)}))}:e}function c(e){return e?function(n,o,r){try{return e.call(t,n,o,r)}catch(t){if(!s(t))throw t}}:e}function u(e){return e?function(n,o,r){function c(t,e){e&&(e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296)),r&&r.apply(this,arguments)}return"function"==typeof o&&(r=o,o=null),o?e.call(t,n,o,c):e.call(t,n,c)}:e}function f(e){return e?function(n,o){var r=o?e.call(t,n,o):e.call(t,n);return r&&(r.uid<0&&(r.uid+=4294967296),r.gid<0&&(r.gid+=4294967296)),r}:e}function s(t){return!t||("ENOSYS"===t.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==t.code&&"EPERM"!==t.code))}t.read="function"!=typeof t.read?t.read:function(e){function n(n,o,r,c,i,u){var f;if(u&&"function"==typeof u){var s=0;f=function(a,l,p){if(a&&"EAGAIN"===a.code&&s<10)return s++,e.call(t,n,o,r,c,i,f);u.apply(this,arguments)}}return e.call(t,n,o,r,c,i,f)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:(a=t.readSync,function(e,n,o,r,c){for(var i=0;;)try{return a.call(t,e,n,o,r,c)}catch(t){if("EAGAIN"===t.code&&i<10){i++;continue}throw t}});var a}},function(t,e){t.exports=require("constants")},function(t,e,n){var o=n(6).Stream;t.exports=function(t){return{ReadStream:function e(n,r){if(!(this instanceof e))return new e(n,r);o.call(this);var c=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,r=r||{};for(var i=Object.keys(r),u=0,f=i.length;u<f;u++){var s=i[u];this[s]=r[s]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){c._read()}));t.open(this.path,this.flags,this.mode,(function(t,e){if(t)return c.emit("error",t),void(c.readable=!1);c.fd=e,c.emit("open",e),c._read()}))},WriteStream:function e(n,r){if(!(this instanceof e))return new e(n,r);o.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,r=r||{};for(var c=Object.keys(r),i=0,u=c.length;i<u;i++){var f=c[i];this[f]=r[f]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},function(t,e){t.exports=require("stream")},function(t,e,n){"use strict";t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var e={__proto__:o(t)};else e=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e};var o=Object.getPrototypeOf||function(t){return t.__proto__}},function(t,e){t.exports=require("util")},function(t,e){t.exports=require("assert")}]));
@@ -3,6 +3,7 @@ import type { CompilerSystem, Logger } from '../../internal/index';
3
3
  * Creates a "logger", based off of NodeJS APIs, that will be used by the compiler and dev-server.
4
4
  * The NodeJS "process" object must be provided as a property in the first argument's object.
5
5
  * @param c an object containing a `Process` for Stencil to use
6
+ * @returns a {@link Logger} object
6
7
  */
7
8
  export declare function createNodeLogger(c: {
8
9
  process: any;
@@ -13,6 +14,7 @@ export declare function createNodeLogger(c: {
13
14
  * `fs` module. Other system APIs include any use of `crypto` to hash content. The NodeJS
14
15
  * "process" object must be provided as a property in the first argument's object.
15
16
  * @param c an object containing a `Process` for Stencil to use
17
+ * @returns a {@link CompilerSystem} object
16
18
  */
17
19
  export declare function createNodeSys(c: {
18
20
  process: any;
package/sys/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Node System v2.18.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System v2.19.1-0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  function _interopDefaultLegacy(e) {
5
5
  return e && "object" == typeof e && "default" in e ? e : {
@@ -277,7 +277,7 @@ Object.defineProperty(exports, "__esModule", {
277
277
  const fs = require("./graceful-fs.js"), path = require("path"), require$$1 = require("util"), require$$2 = require("fs"), require$$3 = require("crypto"), require$$4 = require("stream"), require$$5 = require("assert"), require$$6 = require("os"), require$$7 = require("events"), require$$8 = require("buffer"), require$$9 = require("tty"), glob = require("./glob.js"), cp = require("child_process"), fs__default = _interopDefaultLegacy(fs), path__default = _interopDefaultLegacy(path), require$$1__default = _interopDefaultLegacy(require$$1), require$$2__default = _interopDefaultLegacy(require$$2), require$$3__default = _interopDefaultLegacy(require$$3), require$$4__default = _interopDefaultLegacy(require$$4), require$$5__default = _interopDefaultLegacy(require$$5), require$$6__default = _interopDefaultLegacy(require$$6), require$$6__namespace = _interopNamespace(require$$6), require$$7__default = _interopDefaultLegacy(require$$7), require$$8__default = _interopDefaultLegacy(require$$8), require$$9__default = _interopDefaultLegacy(require$$9), glob__default = _interopDefaultLegacy(glob), cp__namespace = _interopNamespace(cp);
278
278
 
279
279
  symbols = createCommonjsModule((function(e) {
280
- const t = "Hyper" === process.env.TERM_PROGRAM, r = "win32" === process.platform, n = "linux" === process.platform, i = {
280
+ const t = "undefined" != typeof process && "Hyper" === process.env.TERM_PROGRAM, r = "undefined" != typeof process && "win32" === process.platform, n = "undefined" != typeof process && "linux" === process.platform, i = {
281
281
  ballotDisabled: "☒",
282
282
  ballotOff: "☐",
283
283
  ballotOn: "☑",
@@ -299,6 +299,7 @@ symbols = createCommonjsModule((function(e) {
299
299
  pilcrow2: "❡",
300
300
  pilcrow: "¶",
301
301
  plusMinus: "±",
302
+ question: "?",
302
303
  section: "§",
303
304
  starsOff: "☆",
304
305
  starsOn: "★",
@@ -309,7 +310,6 @@ symbols = createCommonjsModule((function(e) {
309
310
  ellipsisLarge: "...",
310
311
  ellipsis: "...",
311
312
  info: "i",
312
- question: "?",
313
313
  questionSmall: "?",
314
314
  pointer: ">",
315
315
  pointerSmall: "»",
@@ -323,7 +323,6 @@ symbols = createCommonjsModule((function(e) {
323
323
  ellipsisLarge: "⋯",
324
324
  ellipsis: "…",
325
325
  info: "ℹ",
326
- question: "?",
327
326
  questionFull: "?",
328
327
  questionSmall: "﹖",
329
328
  pointer: n ? "▸" : "❯",
@@ -346,13 +345,11 @@ symbols = createCommonjsModule((function(e) {
346
345
 
347
346
  const ANSI_REGEX = /[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g, create = () => {
348
347
  const e = {
349
- enabled: !0,
348
+ enabled: "undefined" != typeof process && "0" !== process.env.FORCE_COLOR,
350
349
  visible: !0,
351
350
  styles: {},
352
351
  keys: {}
353
- };
354
- "FORCE_COLOR" in process.env && (e.enabled = "0" !== process.env.FORCE_COLOR);
355
- const t = (e, t, r) => "function" == typeof e ? e(t) : e.wrap(t, r), r = (r, n) => {
352
+ }, t = (e, t, r) => "function" == typeof e ? e(t) : e.wrap(t, r), r = (r, n) => {
356
353
  if ("" === r || null == r) return "";
357
354
  if (!1 === e.enabled) return r;
358
355
  if (!1 === e.visible) return "";
@@ -858,7 +855,7 @@ lockfile = createCommonjsModule((function(e) {
858
855
  function p(e) {
859
856
  return e.replace(/\r\n/g, "\n");
860
857
  }
861
- var d, m, g, y, v, E, b, _, w, S, k, O, A, C, L, T, $, x, R, N, I, P, j, D, F, M, G;
858
+ var d, m, g, y, v, E, b, _, w, S, k, O, A, C, T, L, $, x, R, N, I, P, j, D, F, M, G;
862
859
  Object.defineProperty(t, "__esModule", {
863
860
  value: !0
864
861
  }), t.getFirstSuitableFolder = t.readFirstAvailableStream = t.makeTempDir = t.hardlinksWork = t.writeFilePreservingEol = t.getFileSizeOnDisk = t.walk = t.symlink = t.find = t.readJsonAndFile = t.readJson = t.readFileAny = t.hardlinkBulk = t.copyBulk = t.unlink = t.glob = t.link = t.chmod = t.lstat = t.exists = t.mkdirp = t.stat = t.access = t.rename = t.readdir = t.realpath = t.readlink = t.writeFile = t.open = t.readFileBuffer = t.lockQueue = t.constants = void 0;
@@ -866,29 +863,29 @@ lockfile = createCommonjsModule((function(e) {
866
863
  var s, a, l, u, f, h, p, m, g, y, E, b, _;
867
864
  let w = (_ = (0, (d || n()).default)((function*(n) {
868
865
  var s, a, l, u, f, h, p, d, m, g, y, E;
869
- const b = n.src, _ = n.dest, w = n.type, C = n.onFresh || de, L = n.onDone || de;
866
+ const b = n.src, _ = n.dest, w = n.type, C = n.onFresh || de, T = n.onDone || de;
870
867
  if (O.has(_.toLowerCase()) ? i.verbose(`The case-insensitive file ${_} shouldn't be copied twice in one bulk copy`) : O.add(_.toLowerCase()),
871
868
  "symlink" === w) return yield se((v || o()).default.dirname(_)), C(), A.symlink.push({
872
869
  dest: _,
873
870
  linkname: b
874
- }), void L();
871
+ }), void T();
875
872
  if (t.ignoreBasenames.indexOf((v || o()).default.basename(b)) >= 0) return;
876
- const T = yield ae(b);
873
+ const L = yield ae(b);
877
874
  let $, x;
878
- T.isDirectory() && ($ = yield ne(b));
875
+ L.isDirectory() && ($ = yield ne(b));
879
876
  try {
880
877
  x = yield ae(_);
881
878
  } catch (e) {
882
879
  if ("ENOENT" !== e.code) throw e;
883
880
  }
884
881
  if (x) {
885
- const e = T.isSymbolicLink() && x.isSymbolicLink(), t = T.isDirectory() && x.isDirectory(), n = T.isFile() && x.isFile();
886
- if (n && k.has(_)) return L(), void i.verbose(i.lang("verboseFileSkipArtifact", b));
887
- if (n && T.size === x.size && (0, (S || c()).fileDatesEqual)(T.mtime, x.mtime)) return L(),
888
- void i.verbose(i.lang("verboseFileSkip", b, _, T.size, +T.mtime));
882
+ const e = L.isSymbolicLink() && x.isSymbolicLink(), t = L.isDirectory() && x.isDirectory(), n = L.isFile() && x.isFile();
883
+ if (n && k.has(_)) return T(), void i.verbose(i.lang("verboseFileSkipArtifact", b));
884
+ if (n && L.size === x.size && (0, (S || c()).fileDatesEqual)(L.mtime, x.mtime)) return T(),
885
+ void i.verbose(i.lang("verboseFileSkip", b, _, L.size, +L.mtime));
889
886
  if (e) {
890
887
  const e = yield te(b);
891
- if (e === (yield te(_))) return L(), void i.verbose(i.lang("verboseFileSkipSymlink", b, _, e));
888
+ if (e === (yield te(_))) return T(), void i.verbose(i.lang("verboseFileSkipSymlink", b, _, e));
892
889
  }
893
890
  if (t) {
894
891
  const e = yield ne(_);
@@ -918,20 +915,20 @@ lockfile = createCommonjsModule((function(e) {
918
915
  }
919
916
  }
920
917
  }
921
- if (x && x.isSymbolicLink() && (yield (0, (S || c()).unlink)(_), x = null), T.isSymbolicLink()) {
918
+ if (x && x.isSymbolicLink() && (yield (0, (S || c()).unlink)(_), x = null), L.isSymbolicLink()) {
922
919
  C();
923
920
  const e = yield te(b);
924
921
  A.symlink.push({
925
922
  dest: _,
926
923
  linkname: e
927
- }), L();
928
- } else if (T.isDirectory()) {
924
+ }), T();
925
+ } else if (L.isDirectory()) {
929
926
  x || (i.verbose(i.lang("verboseFileFolder", _)), yield se(_));
930
927
  const t = _.split((v || o()).default.sep);
931
928
  for (;t.length; ) O.add(t.join((v || o()).default.sep).toLowerCase()), t.pop();
932
929
  he($, "src files not initialised");
933
930
  let r = $.length;
934
- for (r || L(), m = $, y = 0, m = (g = Array.isArray(m)) ? m : m[Symbol.iterator](); ;) {
931
+ for (r || T(), m = $, y = 0, m = (g = Array.isArray(m)) ? m : m[Symbol.iterator](); ;) {
935
932
  if (g) {
936
933
  if (y >= m.length) break;
937
934
  E = m[y++];
@@ -951,20 +948,20 @@ lockfile = createCommonjsModule((function(e) {
951
948
  return e.toString();
952
949
  }, t;
953
950
  }((function() {
954
- 0 == --r && L();
951
+ 0 == --r && T();
955
952
  })),
956
953
  src: (v || o()).default.join(b, t)
957
954
  });
958
955
  }
959
956
  } else {
960
- if (!T.isFile()) throw new Error(`unsure how to copy this: ${b}`);
957
+ if (!L.isFile()) throw new Error(`unsure how to copy this: ${b}`);
961
958
  C(), A.file.push({
962
959
  src: b,
963
960
  dest: _,
964
- atime: T.atime,
965
- mtime: T.mtime,
966
- mode: T.mode
967
- }), L();
961
+ atime: L.atime,
962
+ mtime: L.mtime,
963
+ mode: L.mode
964
+ }), T();
968
965
  }
969
966
  })), function e(t) {
970
967
  return _.apply(this, arguments);
@@ -1028,8 +1025,8 @@ lockfile = createCommonjsModule((function(e) {
1028
1025
  const A = yield ae(E);
1029
1026
  let C;
1030
1027
  A.isDirectory() && (C = yield ne(E));
1031
- const L = yield oe(b);
1032
- if (L) {
1028
+ const T = yield oe(b);
1029
+ if (T) {
1033
1030
  const e = yield ae(b), t = A.isSymbolicLink() && e.isSymbolicLink(), n = A.isDirectory() && e.isDirectory(), d = A.isFile() && e.isFile();
1034
1031
  if (A.mode !== e.mode) try {
1035
1032
  yield ie(b, A.mode);
@@ -1113,7 +1110,7 @@ lockfile = createCommonjsModule((function(e) {
1113
1110
  _(), k.link.push({
1114
1111
  src: E,
1115
1112
  dest: b,
1116
- removeDest: L
1113
+ removeDest: T
1117
1114
  }), O();
1118
1115
  }
1119
1116
  })), function e(t) {
@@ -1222,7 +1219,7 @@ lockfile = createCommonjsModule((function(e) {
1222
1219
  }));
1223
1220
  })), function e(t, r, n) {
1224
1221
  return C.apply(this, arguments);
1225
- }), t.readFileAny = (L = (0, (d || n()).default)((function*(e) {
1222
+ }), t.readFileAny = (T = (0, (d || n()).default)((function*(e) {
1226
1223
  var t, r, n, i;
1227
1224
  for (t = e, n = 0, t = (r = Array.isArray(t)) ? t : t[Symbol.iterator](); ;) {
1228
1225
  if (r) {
@@ -1237,11 +1234,11 @@ lockfile = createCommonjsModule((function(e) {
1237
1234
  }
1238
1235
  return null;
1239
1236
  })), function e(t) {
1240
- return L.apply(this, arguments);
1241
- }), t.readJson = (T = (0, (d || n()).default)((function*(e) {
1237
+ return T.apply(this, arguments);
1238
+ }), t.readJson = (L = (0, (d || n()).default)((function*(e) {
1242
1239
  return (yield X(e)).object;
1243
1240
  })), function e(t) {
1244
- return T.apply(this, arguments);
1241
+ return L.apply(this, arguments);
1245
1242
  });
1246
1243
  let X = t.readJsonAndFile = ($ = (0, (d || n()).default)((function*(e) {
1247
1244
  const t = yield h(e);
@@ -2172,7 +2169,7 @@ lockfile = createCommonjsModule((function(e) {
2172
2169
  b.debug("clearStateChar %j %j", d, i), d = !1;
2173
2170
  }
2174
2171
  }
2175
- var n, i, s, o, a, c, d, g, y, v, E, b, _, w, S, k, O, A, C, L, T, $, x, R, N, I, P, j, D, F, M, G;
2172
+ var n, i, s, o, a, c, d, g, y, v, E, b, _, w, S, k, O, A, C, T, L, $, x, R, N, I, P, j, D, F, M, G;
2176
2173
  if (e.length > 65536) throw new TypeError("pattern is too long");
2177
2174
  if (!(n = this.options).noglobstar && "**" === e) return l;
2178
2175
  if ("" === e) return "";
@@ -2265,20 +2262,20 @@ lockfile = createCommonjsModule((function(e) {
2265
2262
  s = s || A[1]), k = a.pop(); k; k = a.pop()) C = i.slice(k.reStart + k.open.length),
2266
2263
  this.debug("setting tail", i, k), C = C.replace(/((?:\\{2}){0,64})(\\?)\|/g, (function(e, t, r) {
2267
2264
  return r || (r = "\\"), t + t + r + "|";
2268
- })), this.debug("tail=%j\n %s", C, C, k, i), L = "*" === k.type ? h : "?" === k.type ? f : "\\" + k.type,
2269
- s = !0, i = i.slice(0, k.reStart) + L + "\\(" + C;
2270
- switch (r(), o && (i += "\\\\"), T = !1, i.charAt(0)) {
2265
+ })), this.debug("tail=%j\n %s", C, C, k, i), T = "*" === k.type ? h : "?" === k.type ? f : "\\" + k.type,
2266
+ s = !0, i = i.slice(0, k.reStart) + T + "\\(" + C;
2267
+ switch (r(), o && (i += "\\\\"), L = !1, i.charAt(0)) {
2271
2268
  case ".":
2272
2269
  case "[":
2273
2270
  case "(":
2274
- T = !0;
2271
+ L = !0;
2275
2272
  }
2276
2273
  for ($ = c.length - 1; $ > -1; $--) {
2277
2274
  for (x = c[$], R = i.slice(0, x.reStart), N = i.slice(x.reStart, x.reEnd - 8), I = i.slice(x.reEnd - 8, x.reEnd),
2278
2275
  I += P = i.slice(x.reEnd), j = R.split("(").length - 1, D = P, _ = 0; _ < j; _++) D = D.replace(/\)[+*?]?/, "");
2279
2276
  F = "", "" === (P = D) && t !== m && (F = "$"), i = R + N + P + F + I;
2280
2277
  }
2281
- if ("" !== i && s && (i = "(?=.)" + i), T && (i = E + i), t === m) return [ i, s ];
2278
+ if ("" !== i && s && (i = "(?=.)" + i), L && (i = E + i), t === m) return [ i, s ];
2282
2279
  if (!s) return function q(e) {
2283
2280
  return e.replace(/\\(.)/g, "$1");
2284
2281
  }(e);
@@ -2988,7 +2985,7 @@ lockfile = createCommonjsModule((function(e) {
2988
2985
  return this;
2989
2986
  };
2990
2987
  e.exports = function(e, t, r, g, y, v, E) {
2991
- var b, _, w, S, k, O, A, C, L, T, $, x;
2988
+ var b, _, w, S, k, O, A, C, T, L, $, x;
2992
2989
  if (l(r, t, g), b = function(e) {
2993
2990
  if (!h && e in k) return k[e];
2994
2991
  switch (e) {
@@ -3006,16 +3003,16 @@ lockfile = createCommonjsModule((function(e) {
3006
3003
  return new r(this, e);
3007
3004
  };
3008
3005
  }, _ = t + " Iterator", w = y == d, S = !1, k = e.prototype, A = (O = k[f] || k["@@iterator"] || y && k[y]) || b(y),
3009
- C = y ? w ? b("entries") : A : void 0, (L = "Array" == t && k.entries || O) && (x = u(L.call(new e))) !== Object.prototype && x.next && (c(x, _, !0),
3006
+ C = y ? w ? b("entries") : A : void 0, (T = "Array" == t && k.entries || O) && (x = u(T.call(new e))) !== Object.prototype && x.next && (c(x, _, !0),
3010
3007
  n || "function" == typeof x[f] || o(x, f, m)), w && O && O.name !== d && (S = !0,
3011
3008
  A = function e() {
3012
3009
  return O.call(this);
3013
- }), n && !E || !h && !S && k[f] || o(k, f, A), a[t] = A, a[_] = m, y) if (T = {
3010
+ }), n && !E || !h && !S && k[f] || o(k, f, A), a[t] = A, a[_] = m, y) if (L = {
3014
3011
  values: w ? A : b(d),
3015
3012
  keys: v ? A : b(p),
3016
3013
  entries: C
3017
- }, E) for ($ in T) $ in k || s(k, $, T[$]); else i(i.P + i.F * (h || S), t, T);
3018
- return T;
3014
+ }, E) for ($ in L) $ in k || s(k, $, L[$]); else i(i.P + i.F * (h || S), t, L);
3015
+ return L;
3019
3016
  };
3020
3017
  }, function(e, t) {
3021
3018
  e.exports = function(e) {
@@ -3704,7 +3701,7 @@ lockfile = createCommonjsModule((function(e) {
3704
3701
  return e >= t;
3705
3702
  }
3706
3703
  function u(e, t) {
3707
- var r, i, f, h, d, m, v, E, b, _, w, S, k, O, A, C, L, T, $, x, R, N = [], I = y("{", "}", e);
3704
+ var r, i, f, h, d, m, v, E, b, _, w, S, k, O, A, C, T, L, $, x, R, N = [], I = y("{", "}", e);
3708
3705
  if (!I || /\$$/.test(I.pre)) return [ e ];
3709
3706
  if (r = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(I.body), i = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(I.body),
3710
3707
  f = r || i, h = I.body.indexOf(",") >= 0, !f && !h) return I.post.match(/,.*\}/) ? u(e = I.pre + "{" + I.body + p + I.post) : [ e ];
@@ -3714,7 +3711,7 @@ lockfile = createCommonjsModule((function(e) {
3714
3711
  if (v = I.pre, m = I.post.length ? u(I.post, !1) : [ "" ], f) for (b = n(d[0]),
3715
3712
  _ = n(d[1]), w = Math.max(d[0].length, d[1].length), S = 3 == d.length ? Math.abs(n(d[2])) : 1,
3716
3713
  k = l, _ < b && (S *= -1, k = c), O = d.some(a), E = [], A = b; k(A, _); A += S) i ? "\\" === (C = String.fromCharCode(A)) && (C = "") : (C = String(A),
3717
- O && (L = w - C.length) > 0 && (T = new Array(L + 1).join("0"), C = A < 0 ? "-" + T + C.slice(1) : T + C)),
3714
+ O && (T = w - C.length) > 0 && (L = new Array(T + 1).join("0"), C = A < 0 ? "-" + L + C.slice(1) : L + C)),
3718
3715
  E.push(C); else E = g(d, (function(e) {
3719
3716
  return u(e, !1);
3720
3717
  }));
@@ -3996,12 +3993,12 @@ lockfile = createCommonjsModule((function(e) {
3996
3993
  return !e || r >= e.length ? (this._t = void 0, i(1)) : i(0, "keys" == t ? r : "values" == t ? e[r] : [ r, e[r] ]);
3997
3994
  }), "values"), s.Arguments = s.Array, n("keys"), n("values"), n("entries");
3998
3995
  }, function(e, t) {}, function(e, t, r) {
3999
- var n, i, s, o, a = r(69), l = r(11), c = r(48), u = r(100), f = r(41), h = r(34), p = r(46), d = r(181), m = r(183), g = r(108), y = r(109).set, v = r(191)(), E = r(70), b = r(104), _ = r(202), w = r(105), S = "Promise", k = l.TypeError, O = l.process, A = O && O.versions, C = A && A.v8 || "", L = l.Promise, T = "process" == u(O), $ = function() {}, x = i = E.f, R = !!function() {
3996
+ var n, i, s, o, a = r(69), l = r(11), c = r(48), u = r(100), f = r(41), h = r(34), p = r(46), d = r(181), m = r(183), g = r(108), y = r(109).set, v = r(191)(), E = r(70), b = r(104), _ = r(202), w = r(105), S = "Promise", k = l.TypeError, O = l.process, A = O && O.versions, C = A && A.v8 || "", T = l.Promise, L = "process" == u(O), $ = function() {}, x = i = E.f, R = !!function() {
4000
3997
  var e, t;
4001
3998
  try {
4002
- return t = ((e = L.resolve(1)).constructor = {})[r(13)("species")] = function(e) {
3999
+ return t = ((e = T.resolve(1)).constructor = {})[r(13)("species")] = function(e) {
4003
4000
  e($, $);
4004
- }, (T || "function" == typeof PromiseRejectionEvent) && e.then($) instanceof t && 0 !== C.indexOf("6.6") && -1 === _.indexOf("Chrome/66");
4001
+ }, (L || "function" == typeof PromiseRejectionEvent) && e.then($) instanceof t && 0 !== C.indexOf("6.6") && -1 === _.indexOf("Chrome/66");
4005
4002
  } catch (e) {}
4006
4003
  }(), N = function(e) {
4007
4004
  var t;
@@ -4027,18 +4024,18 @@ lockfile = createCommonjsModule((function(e) {
4027
4024
  y.call(l, (function() {
4028
4025
  var t, r, n, i = e._v, s = j(e);
4029
4026
  if (s && (t = b((function() {
4030
- T ? O.emit("unhandledRejection", i, e) : (r = l.onunhandledrejection) ? r({
4027
+ L ? O.emit("unhandledRejection", i, e) : (r = l.onunhandledrejection) ? r({
4031
4028
  promise: e,
4032
4029
  reason: i
4033
4030
  }) : (n = l.console) && n.error && n.error("Unhandled promise rejection", i);
4034
- })), e._h = T || j(e) ? 2 : 1), e._a = void 0, s && t.e) throw t.v;
4031
+ })), e._h = L || j(e) ? 2 : 1), e._a = void 0, s && t.e) throw t.v;
4035
4032
  }));
4036
4033
  }, j = function(e) {
4037
4034
  return 1 !== e._h && 0 === (e._a || e._c).length;
4038
4035
  }, D = function(e) {
4039
4036
  y.call(l, (function() {
4040
4037
  var t;
4041
- T ? O.emit("rejectionHandled", e) : (t = l.onrejectionhandled) && t({
4038
+ L ? O.emit("rejectionHandled", e) : (t = l.onrejectionhandled) && t({
4042
4039
  promise: e,
4043
4040
  reason: e._v
4044
4041
  });
@@ -4072,8 +4069,8 @@ lockfile = createCommonjsModule((function(e) {
4072
4069
  }
4073
4070
  }
4074
4071
  };
4075
- R || (L = function e(t) {
4076
- d(this, L, S, "_h"), p(t), n.call(this);
4072
+ R || (T = function e(t) {
4073
+ d(this, T, S, "_h"), p(t), n.call(this);
4077
4074
  try {
4078
4075
  t(c(M, this, 1), c(F, this, 1));
4079
4076
  } catch (e) {
@@ -4082,11 +4079,11 @@ lockfile = createCommonjsModule((function(e) {
4082
4079
  }, (n = function e(t) {
4083
4080
  this._c = [], this._a = void 0, this._s = 0, this._d = !1, this._v = void 0, this._h = 0,
4084
4081
  this._n = !1;
4085
- }).prototype = r(196)(L.prototype, {
4082
+ }).prototype = r(196)(T.prototype, {
4086
4083
  then: function e(t, r) {
4087
- var n = x(g(this, L));
4084
+ var n = x(g(this, T));
4088
4085
  return n.ok = "function" != typeof t || t, n.fail = "function" == typeof r && r,
4089
- n.domain = T ? O.domain : void 0, this._c.push(n), this._a && this._a.push(n), this._s && I(this, !1),
4086
+ n.domain = L ? O.domain : void 0, this._c.push(n), this._a && this._a.push(n), this._s && I(this, !1),
4090
4087
  n.promise;
4091
4088
  },
4092
4089
  catch: function(e) {
@@ -4096,20 +4093,20 @@ lockfile = createCommonjsModule((function(e) {
4096
4093
  var e = new n;
4097
4094
  this.promise = e, this.resolve = c(M, e, 1), this.reject = c(F, e, 1);
4098
4095
  }, E.f = x = function(e) {
4099
- return e === L || e === o ? new s(e) : i(e);
4096
+ return e === T || e === o ? new s(e) : i(e);
4100
4097
  }), f(f.G + f.W + f.F * !R, {
4101
- Promise: L
4102
- }), r(71)(L, S), r(198)(S), o = r(23).Promise, f(f.S + f.F * !R, S, {
4098
+ Promise: T
4099
+ }), r(71)(T, S), r(198)(S), o = r(23).Promise, f(f.S + f.F * !R, S, {
4103
4100
  reject: function e(t) {
4104
4101
  var r = x(this);
4105
4102
  return (0, r.reject)(t), r.promise;
4106
4103
  }
4107
4104
  }), f(f.S + f.F * (a || !R), S, {
4108
4105
  resolve: function e(t) {
4109
- return w(a && this === o ? L : this, t);
4106
+ return w(a && this === o ? T : this, t);
4110
4107
  }
4111
4108
  }), f(f.S + f.F * !(R && r(189)((function(e) {
4112
- L.all(e).catch($);
4109
+ T.all(e).catch($);
4113
4110
  }))), S, {
4114
4111
  all: function e(t) {
4115
4112
  var r = this, n = x(r), i = n.resolve, s = n.reject, o = b((function() {
@@ -5666,18 +5663,19 @@ exports.createNodeLogger = e => {
5666
5663
  }(e.process);
5667
5664
  return createTerminalLogger(t);
5668
5665
  }, exports.createNodeSys = function createNodeSys(e = {}) {
5669
- const t = e.process || global.process, r = new Set, n = [], i = require$$6.cpus(), s = i.length, o = require$$6.platform(), a = path__default.default.join(__dirname, "..", "..", "compiler", "stencil.js"), l = path__default.default.join(__dirname, "..", "..", "dev-server", "index.js"), c = () => {
5666
+ var t;
5667
+ const r = null !== (t = null == e ? void 0 : e.process) && void 0 !== t ? t : global.process, n = new Set, i = [], s = require$$6.cpus(), o = s.length, a = require$$6.platform(), l = path__default.default.join(__dirname, "..", "..", "compiler", "stencil.js"), c = path__default.default.join(__dirname, "..", "..", "dev-server", "index.js"), u = () => {
5670
5668
  const e = [];
5671
5669
  let t;
5672
- for (;"function" == typeof (t = n.pop()); ) try {
5670
+ for (;"function" == typeof (t = i.pop()); ) try {
5673
5671
  const n = t();
5674
5672
  (r = n) && ("object" == typeof r || "function" == typeof r) && "function" == typeof r.then && e.push(n);
5675
5673
  } catch (e) {}
5676
5674
  var r;
5677
5675
  return e.length > 0 ? Promise.all(e) : null;
5678
- }, u = {
5676
+ }, f = {
5679
5677
  name: "node",
5680
- version: t.versions.node,
5678
+ version: r.versions.node,
5681
5679
  access: e => new Promise((t => {
5682
5680
  fs__default.default.access(e, (e => t(!e)));
5683
5681
  })),
@@ -5689,10 +5687,10 @@ exports.createNodeLogger = e => {
5689
5687
  return t;
5690
5688
  },
5691
5689
  addDestory(e) {
5692
- r.add(e);
5690
+ n.add(e);
5693
5691
  },
5694
5692
  removeDestory(e) {
5695
- r.delete(e);
5693
+ n.delete(e);
5696
5694
  },
5697
5695
  applyPrerenderGlobalPatch(e) {
5698
5696
  if ("function" != typeof global.fetch) {
@@ -5763,33 +5761,33 @@ exports.createNodeLogger = e => {
5763
5761
  },
5764
5762
  async destroy() {
5765
5763
  const e = [];
5766
- r.forEach((t => {
5764
+ n.forEach((t => {
5767
5765
  try {
5768
5766
  const r = t();
5769
5767
  r && r.then && e.push(r);
5770
5768
  } catch (e) {
5771
5769
  console.error(`node sys destroy: ${e}`);
5772
5770
  }
5773
- })), e.length > 0 && await Promise.all(e), r.clear();
5771
+ })), e.length > 0 && await Promise.all(e), n.clear();
5774
5772
  },
5775
5773
  dynamicImport: e => Promise.resolve(require(e)),
5776
5774
  encodeToBase64: e => Buffer.from(e).toString("base64"),
5777
5775
  ensureDependencies: async () => ({
5778
- stencilPath: u.getCompilerExecutingPath(),
5776
+ stencilPath: f.getCompilerExecutingPath(),
5779
5777
  diagnostics: []
5780
5778
  }),
5781
5779
  async ensureResources() {},
5782
5780
  exit: async e => {
5783
- await c(), exit(e);
5781
+ await u(), exit(e);
5784
5782
  },
5785
- getCurrentDirectory: () => normalizePath(t.cwd()),
5786
- getCompilerExecutingPath: () => a,
5787
- getDevServerExecutingPath: () => l,
5783
+ getCurrentDirectory: () => normalizePath(r.cwd()),
5784
+ getCompilerExecutingPath: () => l,
5785
+ getDevServerExecutingPath: () => c,
5788
5786
  getEnvironmentVar: e => process.env[e],
5789
5787
  getLocalModulePath: () => null,
5790
5788
  getRemoteModuleUrl: () => null,
5791
5789
  glob: asyncGlob,
5792
- hardwareConcurrency: s,
5790
+ hardwareConcurrency: o,
5793
5791
  isSymbolicLink: e => new Promise((t => {
5794
5792
  try {
5795
5793
  fs__default.default.lstat(e, ((e, r) => {
@@ -5799,10 +5797,10 @@ exports.createNodeLogger = e => {
5799
5797
  t(!1);
5800
5798
  }
5801
5799
  })),
5802
- nextTick: t.nextTick,
5800
+ nextTick: r.nextTick,
5803
5801
  normalizePath,
5804
5802
  onProcessInterrupt: e => {
5805
- n.includes(e) || n.push(e);
5803
+ i.includes(e) || i.push(e);
5806
5804
  },
5807
5805
  platformPath: path__default.default,
5808
5806
  readDir: e => new Promise((t => {
@@ -5949,7 +5947,7 @@ exports.createNodeLogger = e => {
5949
5947
  },
5950
5948
  setupCompiler(e) {
5951
5949
  const t = e.ts, r = t.sys.watchDirectory, n = t.sys.watchFile;
5952
- u.watchTimeout = 80, u.events = (() => {
5950
+ f.watchTimeout = 80, f.events = (() => {
5953
5951
  const e = [], t = t => {
5954
5952
  const r = e.findIndex((e => e.callback === t));
5955
5953
  return r > -1 && (e.splice(r, 1), !0);
@@ -5988,28 +5986,28 @@ exports.createNodeLogger = e => {
5988
5986
  e.length = 0;
5989
5987
  }
5990
5988
  };
5991
- })(), u.watchDirectory = (e, t, n) => {
5989
+ })(), f.watchDirectory = (e, t, n) => {
5992
5990
  const i = r(e, (e => {
5993
5991
  t(normalizePath(e), "fileUpdate");
5994
5992
  }), n), s = () => {
5995
5993
  i.close();
5996
5994
  };
5997
- return u.addDestory(s), {
5995
+ return f.addDestory(s), {
5998
5996
  close() {
5999
- u.removeDestory(s), i.close();
5997
+ f.removeDestory(s), i.close();
6000
5998
  }
6001
5999
  };
6002
- }, u.watchFile = (e, r) => {
6000
+ }, f.watchFile = (e, r) => {
6003
6001
  const i = n(e, ((e, n) => {
6004
- e = normalizePath(e), n === t.FileWatcherEventKind.Created ? (r(e, "fileAdd"), u.events.emit("fileAdd", e)) : n === t.FileWatcherEventKind.Changed ? (r(e, "fileUpdate"),
6005
- u.events.emit("fileUpdate", e)) : n === t.FileWatcherEventKind.Deleted && (r(e, "fileDelete"),
6006
- u.events.emit("fileDelete", e));
6002
+ e = normalizePath(e), n === t.FileWatcherEventKind.Created ? (r(e, "fileAdd"), f.events.emit("fileAdd", e)) : n === t.FileWatcherEventKind.Changed ? (r(e, "fileUpdate"),
6003
+ f.events.emit("fileUpdate", e)) : n === t.FileWatcherEventKind.Deleted && (r(e, "fileDelete"),
6004
+ f.events.emit("fileDelete", e));
6007
6005
  })), s = () => {
6008
6006
  i.close();
6009
6007
  };
6010
- return u.addDestory(s), {
6008
+ return f.addDestory(s), {
6011
6009
  close() {
6012
- u.removeDestory(s), i.close();
6010
+ f.removeDestory(s), i.close();
6013
6011
  }
6014
6012
  };
6015
6013
  };
@@ -6089,14 +6087,14 @@ exports.createNodeLogger = e => {
6089
6087
  })),
6090
6088
  copy: nodeCopyTasks,
6091
6089
  details: {
6092
- cpuModel: (Array.isArray(i) && i.length > 0 ? i[0] && i[0].model : "") || "",
6090
+ cpuModel: (Array.isArray(s) && s.length > 0 ? s[0] && s[0].model : "") || "",
6093
6091
  freemem: () => require$$6.freemem(),
6094
- platform: "darwin" === o || "linux" === o ? o : "win32" === o ? "windows" : "",
6092
+ platform: "darwin" === a || "linux" === a ? a : "win32" === a ? "windows" : "",
6095
6093
  release: require$$6.release(),
6096
6094
  totalmem: require$$6.totalmem()
6097
6095
  }
6098
- }, f = new NodeResolveModule;
6099
- return u.lazyRequire = new NodeLazyRequire(f, {
6096
+ }, h = new NodeResolveModule;
6097
+ return f.lazyRequire = new NodeLazyRequire(h, {
6100
6098
  "@types/jest": {
6101
6099
  minVersion: "24.9.1",
6102
6100
  recommendedVersion: "27.0.3",
@@ -6124,7 +6122,7 @@ exports.createNodeLogger = e => {
6124
6122
  minVersion: "4.3.1",
6125
6123
  recommendedVersion: "4.3.1"
6126
6124
  }
6127
- }), t.on("SIGINT", c), t.on("exit", c), u;
6125
+ }), r.on("SIGINT", u), r.on("exit", u), f;
6128
6126
  }, exports.setupNodeProcess = function setupNodeProcess(e) {
6129
6127
  e.process.on("unhandledRejection", (t => {
6130
6128
  if (!shouldIgnoreError(t)) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/sys/node",
3
- "version": "2.18.1",
3
+ "version": "2.19.1-0",
4
4
  "description": "Stencil Node System.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",