Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dmail/assert

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dmail/assert - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

dist/node/best/main.js

1018

dist/browser/main.js

@@ -1,2 +0,1016 @@

var __dmail_assert__=function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},c=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(c=c.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),c.forEach(function(t){n(e,t,r[t])})}return e}function c(e,t){if(null==e)return{};var n,r,c=function(e,t){if(null==e)return{};var n,r,c={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(c[n]=e[n]);return c}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var o=function(e,t){for(var n=Object.getPrototypeOf(e);n;){if(t(n))return!0;n=Object.getPrototypeOf(n)}return!1},u=function(e){return null!==e&&("object"===t(e)||"function"==typeof e)},i=function(e){return!u(e)},p=function(e,t){for(var n,r=(n=e,{next:function(){var e=f(n);return n=e,{done:!e,value:e}}}),c=r.next();!c.done;){var a=c.value;if(t(a))return a;c=r.next()}return null},l=function(e){return e.children[e.children.length-1]},f=function(e){var t=function(e){var t=e.parent;if(!t)return null;var n=t.children,r=n.indexOf(e);return 0===r?null:n[r-1]}(e);if(t){var n=function(e){for(var t=l(e);t;){var n=l(t);if(!n)break;t=n}return t}(t);return n||t}return e.parent},d=function(e){var t=e.type,n=e.data,r=e.actual,c=e.expected,a=e.parent,o=void 0===a?null:a,u=e.children;return{type:t,data:n,actual:r,expected:c,parent:o,children:void 0===u?[]:u}},s=function(e){var t=e.actual,n=e.expected;if(i(n)||i(t))return v(e),!e.failed;var r=p(e,function(t){return t!==e&&t.expected===e.expected});if(r)return r.actual===e.actual?(y(e,{type:"reference",actual:r,expected:r,comparer:function(){return!0}}),!0):(y(e,{type:"reference",actual:p(e,function(t){return t!==e&&t.actual===e.actual}),expected:r,comparer:function(e){return e.actual===e.expected}}),!e.failed);var c=p(e,function(t){return t!==e&&t.actual===e.actual});return c?(y(e,{type:"reference",actual:c,expected:null,comparer:function(){return!1}}),!1):(v(e),!e.failed||(e.failed=!1,h(e),!e.failed&&(x(e),!e.failed&&(g(e),!e.failed&&(O(e),!e.failed&&(j(e),!e.failed&&(w(e),!e.failed&&(S(e),!e.failed&&(!("valueOf"in n&&"function"==typeof n.valueOf&&(A(e),e.failed))&&(!b(n)||(R(e),!e.failed)))))))))))},y=function(e,t){var n=t.type,r=t.data,c=t.actual,a=t.expected,o=t.comparer,u=void 0===o?s:o,i=d({type:n,data:r,actual:c,expected:a,parent:e});return e.children.push(i),i.failed=!u(i),e.failed=i.failed,i},v=function(e){var t=e.actual,n=e.expected;y(e,{type:"identity",actual:t,expected:n,comparer:function(){return Object.is(n,-0)?Object.is(t,-0):Object.is(t,-0)?Object.is(n,-0):t===n}})},b=function(e){return o(e,function(e){var t=e.constructor;return t&&"RegExp"===t.name})},h=function(e){y(e,{type:"prototype",actual:Object.getPrototypeOf(e.actual),expected:Object.getPrototypeOf(e.expected)})},g=function(e){y(e,{type:"extensibility",actual:Object.isExtensible(e.actual)?"extensible":"non-extensible",expected:Object.isExtensible(e.expected)?"extensible":"non-extensible",comparer:function(e){return e.actual===e.expected}})},x=function(e){y(e,{type:"integrity",actual:m(e.actual),expected:m(e.expected),comparer:function(e){return e.actual===e.expected}})},m=function(e){return Object.isFrozen(e)?"frozen":Object.isSealed(e)?"sealed":"none"},O=function(e){var t=e.actual,n=e.expected,r=Object.getOwnPropertyNames(n),c=Object.getOwnPropertyNames(t),a=r.filter(function(e){return-1===c.indexOf(e)}),o=c.filter(function(e){return-1===r.indexOf(e)});y(e,{type:"properties",actual:{missing:a,extra:o},expected:{missing:[],extra:[]},comparer:function(){return 0===a.length&&0===o.length}}),e.failed||y(e,{type:"properties-order",actual:c,expected:r,comparer:function(){return c.join("")===r.join("")}})},j=function(e){var t=e.actual,n=e.expected,r=Object.getOwnPropertySymbols(n),c=Object.getOwnPropertySymbols(t),a=r.filter(function(e){return-1===c.indexOf(e)}),o=c.filter(function(e){return-1===r.indexOf(e)});y(e,{type:"symbols",actual:{missing:a,extra:o},expected:{missing:[],extra:[]},comparer:function(){return 0===a.length&&0===o.length}})},w=function(e){var t=e.expected,n=Object.getOwnPropertyNames(t),r=!0,c=!1,a=void 0;try{for(var o,u=n[Symbol.iterator]();!(r=(o=u.next()).done);r=!0){var i=o.value;if(P(e,i,t),e.failed)break}}catch(e){c=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(c)throw a}}},S=function(e){var t=e.expected,n=Object.getOwnPropertySymbols(t),r=!0,c=!1,a=void 0;try{for(var o,u=n[Symbol.iterator]();!(r=(o=u.next()).done);r=!0){var i=o.value;if(P(e,i,t),e.failed)break}}catch(e){c=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(c)throw a}}},P=function(e,t,n){var r=e.actual,c=e.expected,a=Object.getOwnPropertyDescriptor(c,t),o=Object.getOwnPropertyDescriptor(r,t);if(!y(e,{type:"property-configurable",data:t,actual:o.configurable?"configurable":"non-configurable",expected:a.configurable?"configurable":"non-configurable",comparer:function(e){return e.actual===e.expected}}).failed&&(!y(e,{type:"property-enumerable",data:t,actual:o.enumerable?"enumerable":"non-enumerable",expected:a.enumerable?"enumerable":"non-enumerable",comparer:function(e){return e.actual===e.expected}}).failed&&!(y(e,{type:"property-writable",data:t,actual:o.writable?"writable":"non-writable",expected:a.writable?"writable":"non-writable",comparer:function(e){return e.actual===e.expected}}).failed||z(n)&&"stack"===t))){if("function"==typeof n){if("caller"===t)return;if("arguments"===t)return}if(!y(e,{type:"property-get",data:t,actual:o.get,expected:a.get}).failed)if(!y(e,{type:"property-set",data:t,actual:o.set,expected:a.set}).failed)y(e,{type:"property-value",data:N(c)?E(t):t,actual:o.value,expected:a.value}).failed}},E=function(e){if("string"!=typeof e)return e;var t=parseInt(e,10);return Number.isInteger(t)&&t>=0?t:e},N=function(e){return o(e,function(e){var t=e.constructor;return t&&"Array"===t.name})},z=function(e){return o(e,function(e){var t=e.constructor;return t&&"Error"===t.name})},A=function(e){y(e,{type:"value-of-return-value",actual:e.actual.valueOf(),expected:e.expected.valueOf()})},R=function(e){y(e,{type:"to-string-return-value",actual:e.actual.toString(),expected:e.expected.toString()})},k=function(e,t){var n=t.parenthesis,r=t.useNew,c=e;return n&&(c="(".concat(e,")")),r&&(c="new ".concat(c)),c},T=function(e){var t=e.count,n=e.useTabs,r=e.size;return n?"\n"+"\t".repeat(t):"\n"+" ".repeat(t*r)},V=function(e,t){var n=t.depth,r=void 0===n?0:n,c=t.indentUsingTab,a=t.indentSize;return"".concat(T({count:r+1,useTabs:c,size:a})).concat(e)},I=function(e,t){return"".concat(V(e,t)).concat((r=(n=t).depth,c=void 0===r?0:r,a=n.indentUsingTab,o=n.indentSize,T({count:c,useTabs:a,size:o})));var n,r,c,a,o},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.seen,c=void 0===n?[]:n;if(c.indexOf(e)>-1)return"Symbol.for('circular')";c.push(e);for(var a,o="",u=Object.getOwnPropertyNames(e),i=0,p=u.length,l=t.depth,f=void 0===l?0:l,d=t.compact,s=r({},t,{depth:f+1,seen:c});i<p;){var y=u[i],v=parseInt(y,10),b=U(Number.isInteger(v)?v:y,s),h=U(e[y],s);o+=d?0===i?"".concat(b,": ").concat(h):", ".concat(b,": ").concat(h):0===i?"".concat(b,": ").concat(h):",".concat(V("".concat(b,": ").concat(h),t)),i++}return a=o.length?"".concat(d?o:I(o,t)):"",a=t.objectConstructor?"Object({".concat(a,"})"):"{".concat(a,"}"),k(a,t)},B=Object.prototype.toString,D={Array:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.seen,c=void 0===n?[]:n;if(c.indexOf(e)>-1)return"Symbol.for('circular')";c.push(e);for(var a,o="",u=0,i=e.length,p=t.compact,l=t.depth,f=r({},t,{depth:(void 0===l?0:l)+1,seen:c});u<i;){var d=e.hasOwnProperty(u)?U(e[u],f):"";o+=p?0===u?d:d?", ".concat(d):",":0===u?d:",".concat(V(d,t)),u++}return a=o.length?p?"".concat(o):I(o,t):"",a="[".concat(a,"]"),k(a,t)},Boolean:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.depth,c=void 0===n?0:n,a=U(e.valueOf(),r({},t,{depth:c+1}));return k("Boolean(".concat(a,")"),t)},Date:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.depth,c=void 0===n?0:n,a=U(e.valueOf(),r({},t,{depth:c+1}));return k("Date(".concat(a,")"),t)},Error:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.depth,c=void 0===n?0:n,a=U(e.message,r({},t,{depth:c+1}));return k("".concat(e.name,"(").concat(a,")"),t)},Number:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.depth,c=void 0===n?0:n,a=U(e.valueOf(),r({},t,{depth:c+1}));return k("Number(".concat(a,")"),t)},Object:_,RegExp:function(e){return e.toString()},String:function(e,t){var n=t.depth,c=void 0===n?0:n,a=U(e.valueOf(),r({},t,{depth:c+1}));return k("String(".concat(a,")"),t)}},F=function(e,t){var n=t.singleQuote,r=function(e){for(var t=String(e),n=0,r=t.length,c="";n<r;){var a=t[n];c+='"'===a||"'"===a||"\\"===a?"\\".concat(a):"\n"===a?"\\n":"\r"===a?"\\r":"\u2028"===a?"\\u2028":"\u2029"===a?"\\u2029":a,n++}return c}(e);return n?"'".concat(r,"'"):'"'.concat(r,'"')},C={boolean:function(e){return e.toString()},function:function(e,t){var n,r=t.showFunctionBody,c=t.parenthesis,a=t.depth;if(r)n=e.toString();else{var o=void 0===e.prototype?"() =>":"function ".concat(0===a?e.name:"","()");n="".concat(o," {/* hidden */}")}return c?"(".concat(n,")"):n},null:function(){return"null"},number:function(e){return Object.is(e,-0)?"-0":e.toString()},object:function(e,n){var c=function(e){if("object"===t(e)&&null===Object.getPrototypeOf(e))return"Object";var n=B.call(e).slice("[object ".length,-1);if("Object"===n){var r=e.constructor.name;if("Object"!==r)return r}return n}(e);return c in D?D[c](e,n):k("".concat(c,"(").concat(_(e,n),")"),r({},n,{parenthesis:!1}))},string:F,symbol:function(e,t){var n=e.toString(),r=n.indexOf("("),c=n.indexOf(")"),a=n.slice(r+1,c),o=a?F(a,t):"",u="Symbol(".concat(o,")");return t.parenthesis?"".concat(u):u},undefined:function(){return"undefined"}},U=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.parenthesis,o=void 0!==a&&a,u=n.singleQuote,i=void 0!==u&&u,p=n.useNew,l=void 0!==p&&p,f=n.objectConstructor,d=void 0!==f&&f,s=n.compact,y=void 0!==s&&s,v=n.showFunctionBody,b=void 0!==v&&v,h=n.indentUsingTab,g=void 0!==h&&h,x=n.indentSize,m=void 0===x?2:x,O=n.depth,j=void 0===O?0:O,w=c(n,["parenthesis","singleQuote","useNew","objectConstructor","compact","showFunctionBody","indentUsingTab","indentSize","depth"]),S=function(e){return null===e?"null":void 0===e?"undefined":t(e)}(e);return C[S](e,r({parenthesis:o,singleQuote:i,useNew:l,objectConstructor:d,compact:y,showFunctionBody:b,indentUsingTab:g,indentSize:m,depth:j},w))},Q=function(e){var t=Object.getOwnPropertyNames(Symbol).find(function(t){return e===Symbol[t]});if(t)return"Symbol".concat(M(t));var n=q(e);return n?Symbol.keyFor(e)?"Symbol.for(".concat(U(n),")"):"Symbol(".concat(U(n),")"):"Symbol()"},q=function(e){var t=e.toString(),n=t.indexOf("("),r=t.indexOf(")");return t.slice(n+1,r)},M=function(e){return"number"==typeof e?"[".concat(U(e),"]"):"string"==typeof e?/^[a-z_$]+[0-9a-z_&]$/i.test(e)?".".concat(e):"[".concat(U(e),"]"):"[".concat(Q(e),"]")},W=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",n=[],r=e.parent;r&&"root"!==r.type;)n.unshift(r),r=r.parent;return"root"!==e.type&&n.push(e),n.reduce(function(e,t){var n=t.type,r=t.data;return"property-enumerable"===n?"".concat(e).concat(M(r),"[[Enumerable]]"):"property-configurable"===n?"".concat(e).concat(M(r),"[[Configurable]]"):"property-writable"===n?"".concat(e).concat(M(r),"[[Writable]]"):"property-get"===n?"".concat(e).concat(M(r),"[[Get]]"):"property-set"===n?"".concat(e).concat(M(r),"[[Set]]"):"property-value"===n?"".concat(e).concat(M(r)):"reference"===n?"".concat(e):"integrity"===n?"".concat(e,"[[Integrity]]"):"extensibility"===n?"".concat(e,"[[Extensible]]"):"prototype"===n?"".concat(e,"[[Prototype]]"):"properties"===n?"".concat(e):"properties-order"===n?"".concat(e):"symbols"===n?"".concat(e):"to-string-return-value"===n?"".concat(e,".toString()"):"value-of-return-value"===n?"".concat(e,".valueOf()"):"identity"===n?e:"".concat(e," type:").concat(n,", data:").concat(r)},t)},$=function(e){var t=J(e);return t?t.slice(1).reduce(function(e,t){return"".concat(e).concat(M(t))},t[0]):null},G=new WeakMap,H=new Map,J=function(e){return G.get(e)},K=function(e,t){!function e(t,n){if(function(e){return!u(e)}(t))H.set(t,n);else if(!G.has(t)){G.set(t,n);var r=function(r){var c=Object.getOwnPropertyDescriptor(t,r);if("value"in c){var o=c.value;e(o,a(n).concat([r]))}};Object.getOwnPropertyNames(t).forEach(function(e){return r(e)}),Object.getOwnPropertySymbols(t).forEach(function(e){return r(e)})}}(e,[t])};"object"===("undefined"==typeof global?"undefined":t(global))&&K(global,"global"),"object"===("undefined"==typeof window?"undefined":t(window))&&K(window,"window");var L=function(e){return $(e)||U(e)},X=function(e){var t=W(e,"actual"),n=L(e.expected),r=L(e.actual);return Y({path:t,expectedValue:n,actualValue:r})},Y=function(e){var t=e.path,n=e.expectedValue,r=e.actualValue;return"unequal values.\n--- path ---\n".concat(t,"\n--- expected value ---\n").concat(n,"\n--- actual value ---\n").concat(r)},Z=function(e){if("reference"===e.type){var t=e.actual,n=e.expected,r=n&&!t,c=!n&&t,a=W(e,"actual");return c?ee({path:a,expectedValue:L(e.parent.expected),unexpectedReferencePath:W(t,"actual")}):r?te({path:a,expectedReferencePath:W(n,"expected"),actualValue:L(e.parent.actual)}):ne({path:a,expectedReferencePath:W(n,"expected"),actualReferencePath:W(t,"actual")})}},ee=function(e){var t=e.path,n=e.expectedValue,r=e.unexpectedReferencePath;return"unexpected reference.\n--- path ---\n".concat(t,"\n--- expected value ---\n").concat(n,"\n--- unexpected reference path ---\n").concat(r)},te=function(e){var t=e.path,n=e.expectedReferencePath,r=e.actualValue;return"missing reference.\n--- path ---\n".concat(t,"\n--- expected reference path ---\n").concat(n,"\n--- actual value ---\n").concat(r)},ne=function(e){var t=e.path,n=e.expectedReferencePath,r=e.actualReferencePath;return"unequal references.\n--- path ---\n".concat(t,"\n--- expected reference path ---\n").concat(n,"\n--- actual reference path ---\n").concat(r)},re=function(e){var t=ce(e);if(!t)return null;var n=function(e){for(var t=e;t&&t.parent;)t=t.parent;return t}(e),r=W(t,"actual"),c=function(e){var t=$(e);return t||(e===n.expected?"expected":e===n.actual?"actual":U(e))},a=t.expected,o=t.actual;return ae({path:r,expectedPrototype:c(a),actualPrototype:c(o)})},ce=function(e){for(var t,n=e;n;){if(n&&"prototype"===n.type){for(n=(t=n).parent;n;)"prototype"===n.type&&(t=n),n=n.parent;return t}n=n.parent}return null},ae=function(e){var t=e.path,n=e.expectedPrototype,r=e.actualPrototype;return"unequal prototypes.\n--- path ---\n".concat(t,"\n--- expected prototype ---\n").concat(n,"\n--- actual prototype ---\n").concat(r)},oe=function(e){if("properties"===e.type){var t=W(e,"actual"),n=e.actual.extra,r=e.actual.missing;return n&&!r?ue({path:t,unexpectedProperties:U(n)}):r&&!n?ie({path:t,missingProperties:U(r)}):pe({path:t,unexpectedProperties:U(n),missingProperties:U(r)})}},ue=function(e){var t=e.path,n=e.unexpectedProperties;return"unexpected properties.\n--- path ---\n".concat(t,"\n--- unexpected properties ---\n").concat(n)},ie=function(e){var t=e.path,n=e.missingProperties;return"missing properties.\n--- path ---\n".concat(t,"\n--- missing properties ---\n").concat(n)},pe=function(e){var t=e.path,n=e.unexpectedProperties,r=e.missingProperties;return"unexpected and missing properties.\n--- path ---\n".concat(t,"\n--- unexpected properties ---\n").concat(n,"\n--- missing properties ---\n").concat(r)},le=function(e){if("properties-order"===e.type){var t=W(e,"actual"),n=e.expected,r=e.actual;return fe({path:t,expectedPropertiesOrder:U(n),actualPropertiesOrder:U(r)})}},fe=function(e){var t=e.path,n=e.expectedPropertiesOrder,r=e.actualPropertiesOrder;return"unexpected properties order.\n--- path ---\n".concat(t,"\n--- expected properties order ---\n").concat(n,"\n--- actual properties order ---\n").concat(r)},de=function(e){if("symbols"===e.type){var t=W(e,"actual"),n=e.actual.extra,r=e.actual.missing;return n&&!r?se({path:t,unexpectedSymbols:U(n)}):r&&!n?ye({path:t,missingSymbols:U(r)}):ve({path:t,unexpectedSymbols:U(n),missingSymbols:U(r)})}},se=function(e){var t=e.path,n=e.unexpectedSymbols;return"unexpected symbols.\n--- path ---\n".concat(t,"\n--- unexpected symbols ---\n").concat(n)},ye=function(e){var t=e.path,n=e.missingSymbols;return"missing symbols.\n--- path ---\n".concat(t,"\n--- missing symbols ---\n").concat(n)},ve=function(e){var t=e.path,n=e.unexpectedSymbols,r=e.missingSymbols;return"unexpected and missing symbols.\n--- path ---\n".concat(t,"\n--- unexpected symbols ---\n").concat(n,"\n--- missing symbols ---\n").concat(r)},be=function(e){for(var t=e;t;){var n=t.children;if(0===n.length)break;t=n[n.length-1]}return t},he=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var c=!0,a=!1,o=void 0;try{for(var u,i=e[Symbol.iterator]();!(c=(u=i.next()).done);c=!0){var p=u.value.apply(void 0,n);if(null!=p)return p}}catch(e){a=!0,o=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw o}}},ge=function(e){var t=new Error(e);return t.name="AssertionError",t};return e.assert=function(e){var t=e.message,n=function(e){var t=e.actual,n=e.expected,r=d({type:"root",actual:t,expected:n});return r.failed=!s(r),r}({actual:e.actual,expected:e.expected});if(n.failed)throw ge(t||function(e){var t=be(e);return he([re,Z,oe,le,de,X],t)}(n))},e.isAssertionError=function(e){return e&&"object"===t(e)&&"AssertionError"===e.name},e}({});
//# sourceMappingURL=main.js.map
System.register([], function (e, t) {
"use strict";
return {
execute: function () {
function t(e) {
return (t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
return typeof e;
} : function (e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
})(e);
}
function n(e, t, n) {
return t in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
function r(e) {
for (var t = 1; t < arguments.length; t++) {
var r = null != arguments[t] ? arguments[t] : {},
a = Object.keys(r);
"function" == typeof Object.getOwnPropertySymbols && (a = a.concat(Object.getOwnPropertySymbols(r).filter(function (e) {
return Object.getOwnPropertyDescriptor(r, e).enumerable;
}))), a.forEach(function (t) {
n(e, t, r[t]);
});
}
return e;
}
function a(e) {
return function (e) {
if (Array.isArray(e)) {
for (var t = 0, n = new Array(e.length); t < e.length; t++) n[t] = e[t];
return n;
}
}(e) || function (e) {
if (Symbol.iterator in Object(e) || "[object Arguments]" === Object.prototype.toString.call(e)) return Array.from(e);
}(e) || function () {
throw new TypeError("Invalid attempt to spread non-iterable instance");
}();
}
var c = function (e, t) {
for (var n = Object.getPrototypeOf(e); n;) {
if (t(n)) return !0;
n = Object.getPrototypeOf(n);
}
return !1;
},
o = function (e) {
return null !== e && ("object" === t(e) || "function" == typeof e);
},
i = function (e) {
return !o(e);
},
u = function (e, t) {
for (var n, r = (n = e, {
next: function () {
var e = l(n);
return n = e, {
done: !e,
value: e
};
}
}), a = r.next(); !a.done;) {
var c = a.value;
if (t(c)) return c;
a = r.next();
}
return null;
},
p = function (e) {
return e.children[e.children.length - 1];
},
l = function (e) {
var t = function (e) {
var t = e.parent;
if (!t) return null;
var n = t.children,
r = n.indexOf(e);
return 0 === r ? null : n[r - 1];
}(e);
if (t) {
var n = function (e) {
for (var t = p(e); t;) {
var n = p(t);
if (!n) break;
t = n;
}
return t;
}(t);
return n || t;
}
return e.parent;
},
f = function (e) {
var t = e.type,
n = e.data,
r = e.actual,
a = e.expected,
c = e.parent,
o = void 0 === c ? null : c,
i = e.children;
return {
type: t,
data: n,
actual: r,
expected: a,
parent: o,
children: void 0 === i ? [] : i
};
},
s = function (e) {
var t = e.actual,
n = e.expected;
if (i(n) || i(t)) return y(e), !e.failed;
var r = u(e, function (t) {
return t !== e && t.expected === e.expected;
});
if (r) return r.actual === e.actual ? (d(e, {
type: "reference",
actual: r,
expected: r,
comparer: function () {
return !0;
}
}), !0) : (d(e, {
type: "reference",
actual: u(e, function (t) {
return t !== e && t.actual === e.actual;
}),
expected: r,
comparer: function (e) {
return e.actual === e.expected;
}
}), !e.failed);
var a = u(e, function (t) {
return t !== e && t.actual === e.actual;
});
return a ? (d(e, {
type: "reference",
actual: a,
expected: null,
comparer: function () {
return !1;
}
}), !1) : (y(e), !e.failed || (e.failed = !1, b(e), !e.failed && (g(e), !e.failed && (h(e), !e.failed && (x(e), !e.failed && (O(e), !e.failed && (w(e), !e.failed && (S(e), !e.failed && !("valueOf" in n && "function" == typeof n.valueOf && (U(e), e.failed)) && (!v(n) || (z(e), !e.failed))))))))));
},
d = function (e, t) {
var n = t.type,
r = t.data,
a = t.actual,
c = t.expected,
o = t.comparer,
i = void 0 === o ? s : o,
u = f({
type: n,
data: r,
actual: a,
expected: c,
parent: e
});
return e.children.push(u), u.failed = !i(u), e.failed = u.failed, u;
},
y = function (e) {
var t = e.actual,
n = e.expected;
d(e, {
type: "identity",
actual: t,
expected: n,
comparer: function () {
return Object.is(n, -0) ? Object.is(t, -0) : Object.is(t, -0) ? Object.is(n, -0) : t === n;
}
});
},
v = function (e) {
return c(e, function (e) {
var t = e.constructor;
return t && "RegExp" === t.name;
});
},
b = function (e) {
d(e, {
type: "prototype",
actual: Object.getPrototypeOf(e.actual),
expected: Object.getPrototypeOf(e.expected)
});
},
h = function (e) {
d(e, {
type: "extensibility",
actual: Object.isExtensible(e.actual) ? "extensible" : "non-extensible",
expected: Object.isExtensible(e.expected) ? "extensible" : "non-extensible",
comparer: function (e) {
return e.actual === e.expected;
}
});
},
g = function (e) {
d(e, {
type: "integrity",
actual: m(e.actual),
expected: m(e.expected),
comparer: function (e) {
return e.actual === e.expected;
}
});
},
m = function (e) {
return Object.isFrozen(e) ? "frozen" : Object.isSealed(e) ? "sealed" : "none";
},
x = function (e) {
var t = e.actual,
n = e.expected,
r = Object.getOwnPropertyNames(n),
a = Object.getOwnPropertyNames(t),
c = r.filter(function (e) {
return -1 === a.indexOf(e);
}),
o = a.filter(function (e) {
return -1 === r.indexOf(e);
});
d(e, {
type: "properties",
actual: {
missing: c,
extra: o
},
expected: {
missing: [],
extra: []
},
comparer: function () {
return 0 === c.length && 0 === o.length;
}
}), e.failed || d(e, {
type: "properties-order",
actual: a,
expected: r,
comparer: function () {
return a.join("") === r.join("");
}
});
},
O = function (e) {
var t = e.actual,
n = e.expected,
r = Object.getOwnPropertySymbols(n),
a = Object.getOwnPropertySymbols(t),
c = r.filter(function (e) {
return -1 === a.indexOf(e);
}),
o = a.filter(function (e) {
return -1 === r.indexOf(e);
});
d(e, {
type: "symbols",
actual: {
missing: c,
extra: o
},
expected: {
missing: [],
extra: []
},
comparer: function () {
return 0 === c.length && 0 === o.length;
}
});
},
w = function (e) {
var t = e.expected,
n = Object.getOwnPropertyNames(t),
r = !0,
a = !1,
c = void 0;
try {
for (var o, i = n[Symbol.iterator](); !(r = (o = i.next()).done); r = !0) {
var u = o.value;
if (j(e, u, t), e.failed) break;
}
} catch (e) {
a = !0, c = e;
} finally {
try {
r || null == i.return || i.return();
} finally {
if (a) throw c;
}
}
},
S = function (e) {
var t = e.expected,
n = Object.getOwnPropertySymbols(t),
r = !0,
a = !1,
c = void 0;
try {
for (var o, i = n[Symbol.iterator](); !(r = (o = i.next()).done); r = !0) {
var u = o.value;
if (j(e, u, t), e.failed) break;
}
} catch (e) {
a = !0, c = e;
} finally {
try {
r || null == i.return || i.return();
} finally {
if (a) throw c;
}
}
},
j = function (e, t, n) {
var r = e.actual,
a = e.expected,
c = Object.getOwnPropertyDescriptor(a, t),
o = Object.getOwnPropertyDescriptor(r, t);
if (!d(e, {
type: "property-configurable",
data: t,
actual: o.configurable ? "configurable" : "non-configurable",
expected: c.configurable ? "configurable" : "non-configurable",
comparer: function (e) {
return e.actual === e.expected;
}
}).failed && !d(e, {
type: "property-enumerable",
data: t,
actual: o.enumerable ? "enumerable" : "non-enumerable",
expected: c.enumerable ? "enumerable" : "non-enumerable",
comparer: function (e) {
return e.actual === e.expected;
}
}).failed && !(d(e, {
type: "property-writable",
data: t,
actual: o.writable ? "writable" : "non-writable",
expected: c.writable ? "writable" : "non-writable",
comparer: function (e) {
return e.actual === e.expected;
}
}).failed || T(n) && "stack" === t)) {
if ("function" == typeof n) {
if ("caller" === t) return;
if ("arguments" === t) return;
}
if (!d(e, {
type: "property-get",
data: t,
actual: o.get,
expected: c.get
}).failed) if (!d(e, {
type: "property-set",
data: t,
actual: o.set,
expected: c.set
}).failed) d(e, {
type: "property-value",
data: N(a) ? P(t) : t,
actual: o.value,
expected: c.value
}).failed;
}
},
P = function (e) {
if ("string" != typeof e) return e;
var t = parseInt(e, 10);
return Number.isInteger(t) && t >= 0 ? t : e;
},
N = function (e) {
return c(e, function (e) {
var t = e.constructor;
return t && "Array" === t.name;
});
},
T = function (e) {
return c(e, function (e) {
var t = e.constructor;
return t && "Error" === t.name;
});
},
U = function (e) {
d(e, {
type: "value-of-return-value",
actual: e.actual.valueOf(),
expected: e.expected.valueOf()
});
},
z = function (e) {
d(e, {
type: "to-string-return-value",
actual: e.actual.toString(),
expected: e.expected.toString()
});
},
E = Object.prototype.toString,
A = function (e) {
if ("object" === t(e) && null === Object.getPrototypeOf(e)) return "Object";
var n = E.call(e).slice("[object ".length, -1);
if ("Object" === n) {
var r = e.constructor.name;
if ("Object" !== r) return r;
}
return n;
},
R = function (e) {
return null === e ? "null" : void 0 === e ? "undefined" : t(e);
},
k = function (e, t) {
var n = t.depth,
r = t.indentUsingTab,
a = t.indentSize;
return "".concat(V({
count: n + 1,
useTabs: r,
size: a
})).concat(e);
},
V = function (e) {
var t = e.count,
n = e.useTabs,
r = e.size;
return n ? "\n" + "\t".repeat(t) : "\n" + " ".repeat(t * r);
},
F = function (e, t) {
var n = t.depth,
r = t.indentUsingTab,
a = t.indentSize;
return "".concat(k(e, {
depth: n,
indentUsingTab: r,
indentSize: a
})).concat(function (e) {
var t = e.depth,
n = e.indentUsingTab,
r = e.indentSize;
return V({
count: t,
useTabs: n,
size: r
});
}({
depth: n,
indentUsingTab: r,
indentSize: a
}));
},
D = {
boolean: function (e) {
return e.toString();
},
null: function () {
return "null";
},
number: function (e) {
return Object.is(e, -0) ? "-0" : e.toString();
},
string: function (e, t) {
var n = t.singleQuote,
r = function (e) {
for (var t = String(e), n = 0, r = t.length, a = ""; n < r;) {
var c = t[n];
a += '"' === c || "'" === c || "\\" === c ? "\\".concat(c) : "\n" === c ? "\\n" : "\r" === c ? "\\r" : "\u2028" === c ? "\\u2028" : "\u2029" === c ? "\\u2029" : c, n++;
}
return a;
}(e);
return n ? "'".concat(r, "'") : '"'.concat(r, '"');
},
symbol: function (e, t) {
var n = t.nestedUneval,
r = t.parenthesis,
a = e.toString(),
c = a.indexOf("("),
o = a.indexOf(")"),
i = a.slice(c + 1, o),
u = i ? n(i) : "",
p = "Symbol(".concat(u, ")");
return r ? "".concat(p) : p;
},
undefined: function () {
return "undefined";
}
},
I = function (e, t) {
var n = t.parenthesis,
r = t.useNew,
a = e;
return n && (a = "(".concat(e, ")")), r && (a = "new ".concat(a)), a;
},
B = function (e, t) {
var n = t.nestedUneval,
r = t.seen,
a = void 0 === r ? [] : r,
c = t.compact,
o = t.depth,
i = t.indentUsingTab,
u = t.indentSize,
p = t.objectConstructor,
l = t.parenthesis,
f = t.useNew;
if (a.indexOf(e) > -1) return "Symbol.for('circular')";
a.push(e);
for (var s, d = "", y = Object.getOwnPropertyNames(e), v = 0, b = y.length; v < b;) {
var h = y[v],
g = parseInt(h, 10),
m = n(Number.isInteger(g) ? g : h),
x = n(e[h], {
seen: a
});
d += c ? 0 === v ? "".concat(m, ": ").concat(x) : ", ".concat(m, ": ").concat(x) : 0 === v ? "".concat(m, ": ").concat(x) : ",".concat(k("".concat(m, ": ").concat(x), {
depth: o,
indentUsingTab: i,
indentSize: u
})), v++;
}
return s = d.length ? "".concat(c ? d : F(d, {
depth: o,
indentUsingTab: i,
indentSize: u
})) : "", s = p ? "Object({".concat(s, "})") : "{".concat(s, "}"), I(s, {
parenthesis: l,
useNew: f
});
},
C = {
Array: function (e, t) {
var n = t.seen,
r = void 0 === n ? [] : n,
a = t.nestedUneval,
c = t.compact,
o = t.depth,
i = t.indentUsingTab,
u = t.indentSize,
p = t.parenthesis,
l = t.useNew;
if (r.indexOf(e) > -1) return "Symbol.for('circular')";
r.push(e);
for (var f, s = "", d = 0, y = e.length; d < y;) {
var v = e.hasOwnProperty(d) ? a(e[d], {
seen: r
}) : "";
s += c ? 0 === d ? v : v ? ", ".concat(v) : "," : 0 === d ? v : ",".concat(k(v, {
depth: o,
indentUsingTab: i,
indentSize: u
})), d++;
}
return f = s.length ? c ? "".concat(s) : F(s, {
depth: o,
indentUsingTab: i,
indentSize: u
}) : "", f = "[".concat(f, "]"), I(f, {
parenthesis: p,
useNew: l
});
},
Boolean: function (e, t) {
var n = t.nestedUneval,
r = t.useNew,
a = t.parenthesis,
c = n(e.valueOf());
return I("Boolean(".concat(c, ")"), {
useNew: r,
parenthesis: a
});
},
Error: function (e, t) {
var n = t.nestedUneval,
r = t.useNew,
a = t.parenthesis,
c = n(e.message);
return I("".concat(e.name, "(").concat(c, ")"), {
useNew: r,
parenthesis: a
});
},
Date: function (e, t) {
var n = t.nestedUneval,
r = t.useNew,
a = t.parenthesis,
c = n(e.valueOf());
return I("Date(".concat(c, ")"), {
useNew: r,
parenthesis: a
});
},
Function: function (e, t) {
var n,
r = t.showFunctionBody,
a = t.parenthesis,
c = t.depth;
if (r) n = e.toString();else {
var o = void 0 === e.prototype ? "() =>" : "function ".concat(0 === c ? e.name : "", "()");
n = "".concat(o, " {/* hidden */}");
}
return a ? "(".concat(n, ")") : n;
},
Number: function (e, t) {
var n = t.nestedUneval,
r = t.useNew,
a = t.parenthesis,
c = n(e.valueOf());
return I("Number(".concat(c, ")"), {
useNew: r,
parenthesis: a
});
},
Object: B,
RegExp: function (e) {
return e.toString();
},
String: function (e, t) {
var n = t.nestedUneval,
r = t.useNew,
a = t.parenthesis,
c = n(e.valueOf());
return I("String(".concat(c, ")"), {
useNew: r,
parenthesis: a
});
}
},
q = function (e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
n = t.parenthesis,
a = void 0 !== n && n,
c = t.singleQuote,
o = void 0 !== c && c,
i = t.useNew,
u = void 0 !== i && i,
p = t.objectConstructor,
l = void 0 !== p && p,
f = t.compact,
s = void 0 !== f && f,
d = t.showFunctionBody,
y = void 0 !== d && d,
v = t.indentUsingTab,
b = void 0 !== v && v,
h = t.indentSize;
return function e(t, n) {
var a = function (e) {
var t = R(e);
return "function" === t ? {
compositeType: "Function"
} : "object" === t ? {
compositeType: A(e)
} : {
primitiveType: t
};
}(t),
c = a.primitiveType,
o = a.compositeType,
i = r({}, n, {
nestedUneval: function (t) {
var a = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
return e(t, r({}, n, {
depth: n.depth + 1
}, a));
}
});
return c ? D[c](t, i) : o in C ? C[o](t, i) : I("".concat(o, "(").concat(B(t, i), ")"), r({}, i, {
parenthesis: !1
}));
}(e, {
parenthesis: a,
singleQuote: o,
useNew: u,
objectConstructor: l,
compact: s,
showFunctionBody: y,
indentUsingTab: b,
indentSize: void 0 === h ? 2 : h,
depth: 0
});
},
Q = function (e) {
var t = Object.getOwnPropertyNames(Symbol).find(function (t) {
return e === Symbol[t];
});
if (t) return "Symbol".concat(W(t));
var n = M(e);
return n ? Symbol.keyFor(e) ? "Symbol.for(".concat(q(n), ")") : "Symbol(".concat(q(n), ")") : "Symbol()";
},
M = function (e) {
var t = e.toString(),
n = t.indexOf("("),
r = t.indexOf(")");
return t.slice(n + 1, r);
},
W = function (e) {
return "number" == typeof e ? "[".concat(q(e), "]") : "string" == typeof e ? /^[a-z_$]+[0-9a-z_&]$/i.test(e) ? ".".concat(e) : "[".concat(q(e), "]") : "[".concat(Q(e), "]");
},
$ = function (e) {
for (var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "value", n = [], r = e.parent; r && "root" !== r.type;) n.unshift(r), r = r.parent;
return "root" !== e.type && n.push(e), n.reduce(function (e, t) {
var n = t.type,
r = t.data;
return "property-enumerable" === n ? "".concat(e).concat(W(r), "[[Enumerable]]") : "property-configurable" === n ? "".concat(e).concat(W(r), "[[Configurable]]") : "property-writable" === n ? "".concat(e).concat(W(r), "[[Writable]]") : "property-get" === n ? "".concat(e).concat(W(r), "[[Get]]") : "property-set" === n ? "".concat(e).concat(W(r), "[[Set]]") : "property-value" === n ? "".concat(e).concat(W(r)) : "reference" === n ? "".concat(e) : "integrity" === n ? "".concat(e, "[[Integrity]]") : "extensibility" === n ? "".concat(e, "[[Extensible]]") : "prototype" === n ? "".concat(e, "[[Prototype]]") : "properties" === n ? "".concat(e) : "properties-order" === n ? "".concat(e) : "symbols" === n ? "".concat(e) : "to-string-return-value" === n ? "".concat(e, ".toString()") : "value-of-return-value" === n ? "".concat(e, ".valueOf()") : "identity" === n ? e : "".concat(e, " type:").concat(n, ", data:").concat(r);
}, t);
},
_ = function (e) {
var t = J(e);
return t ? t.slice(1).reduce(function (e, t) {
return "".concat(e).concat(W(t));
}, t[0]) : null;
},
G = new WeakMap(),
H = new Map(),
J = function (e) {
return G.get(e);
},
K = function (e, t) {
!function e(t, n) {
if (function (e) {
return !o(e);
}(t)) H.set(t, n);else if (!G.has(t)) {
G.set(t, n);
var r = function (r) {
var c = Object.getOwnPropertyDescriptor(t, r);
if ("value" in c) {
var o = c.value;
e(o, a(n).concat([r]));
}
};
Object.getOwnPropertyNames(t).forEach(function (e) {
return r(e);
}), Object.getOwnPropertySymbols(t).forEach(function (e) {
return r(e);
});
}
}(e, [t]);
};
"object" === ("undefined" == typeof global ? "undefined" : t(global)) && K(global, "global"), "object" === ("undefined" == typeof window ? "undefined" : t(window)) && K(window, "window");
var L = function (e) {
return _(e) || q(e);
},
X = function (e) {
var t = $(e, "actual"),
n = L(e.expected),
r = L(e.actual);
return Y({
path: t,
expectedValue: n,
actualValue: r
});
},
Y = function (e) {
var t = e.path,
n = e.expectedValue,
r = e.actualValue;
return "unequal values.\n--- path ---\n".concat(t, "\n--- expected value ---\n").concat(n, "\n--- actual value ---\n").concat(r);
},
Z = function (e) {
if ("reference" === e.type) {
var t = e.actual,
n = e.expected,
r = n && !t,
a = !n && t,
c = $(e, "actual");
return a ? ee({
path: c,
expectedValue: L(e.parent.expected),
unexpectedReferencePath: $(t, "actual")
}) : r ? te({
path: c,
expectedReferencePath: $(n, "expected"),
actualValue: L(e.parent.actual)
}) : ne({
path: c,
expectedReferencePath: $(n, "expected"),
actualReferencePath: $(t, "actual")
});
}
},
ee = function (e) {
var t = e.path,
n = e.expectedValue,
r = e.unexpectedReferencePath;
return "unexpected reference.\n--- path ---\n".concat(t, "\n--- expected value ---\n").concat(n, "\n--- unexpected reference path ---\n").concat(r);
},
te = function (e) {
var t = e.path,
n = e.expectedReferencePath,
r = e.actualValue;
return "missing reference.\n--- path ---\n".concat(t, "\n--- expected reference path ---\n").concat(n, "\n--- actual value ---\n").concat(r);
},
ne = function (e) {
var t = e.path,
n = e.expectedReferencePath,
r = e.actualReferencePath;
return "unequal references.\n--- path ---\n".concat(t, "\n--- expected reference path ---\n").concat(n, "\n--- actual reference path ---\n").concat(r);
},
re = function (e) {
var t = ae(e);
if (!t) return null;
var n = function (e) {
for (var t = e; t && t.parent;) t = t.parent;
return t;
}(e),
r = $(t, "actual"),
a = function (e) {
var t = _(e);
return t || (e === n.expected ? "expected" : e === n.actual ? "actual" : q(e));
},
c = t.expected,
o = t.actual;
return ce({
path: r,
expectedPrototype: a(c),
actualPrototype: a(o)
});
},
ae = function (e) {
for (var t, n = e; n;) {
if (n && "prototype" === n.type) {
for (n = (t = n).parent; n;) "prototype" === n.type && (t = n), n = n.parent;
return t;
}
n = n.parent;
}
return null;
},
ce = function (e) {
var t = e.path,
n = e.expectedPrototype,
r = e.actualPrototype;
return "unequal prototypes.\n--- path ---\n".concat(t, "\n--- expected prototype ---\n").concat(n, "\n--- actual prototype ---\n").concat(r);
},
oe = function (e) {
if ("properties" === e.type) {
var t = $(e, "actual"),
n = e.actual.extra,
r = e.actual.missing;
return n && !r ? ie({
path: t,
unexpectedProperties: q(n)
}) : r && !n ? ue({
path: t,
missingProperties: q(r)
}) : pe({
path: t,
unexpectedProperties: q(n),
missingProperties: q(r)
});
}
},
ie = function (e) {
var t = e.path,
n = e.unexpectedProperties;
return "unexpected properties.\n--- path ---\n".concat(t, "\n--- unexpected properties ---\n").concat(n);
},
ue = function (e) {
var t = e.path,
n = e.missingProperties;
return "missing properties.\n--- path ---\n".concat(t, "\n--- missing properties ---\n").concat(n);
},
pe = function (e) {
var t = e.path,
n = e.unexpectedProperties,
r = e.missingProperties;
return "unexpected and missing properties.\n--- path ---\n".concat(t, "\n--- unexpected properties ---\n").concat(n, "\n--- missing properties ---\n").concat(r);
},
le = function (e) {
if ("properties-order" === e.type) {
var t = $(e, "actual"),
n = e.expected,
r = e.actual;
return fe({
path: t,
expectedPropertiesOrder: q(n),
actualPropertiesOrder: q(r)
});
}
},
fe = function (e) {
var t = e.path,
n = e.expectedPropertiesOrder,
r = e.actualPropertiesOrder;
return "unexpected properties order.\n--- path ---\n".concat(t, "\n--- expected properties order ---\n").concat(n, "\n--- actual properties order ---\n").concat(r);
},
se = function (e) {
if ("symbols" === e.type) {
var t = $(e, "actual"),
n = e.actual.extra,
r = e.actual.missing;
return n && !r ? de({
path: t,
unexpectedSymbols: q(n)
}) : r && !n ? ye({
path: t,
missingSymbols: q(r)
}) : ve({
path: t,
unexpectedSymbols: q(n),
missingSymbols: q(r)
});
}
},
de = function (e) {
var t = e.path,
n = e.unexpectedSymbols;
return "unexpected symbols.\n--- path ---\n".concat(t, "\n--- unexpected symbols ---\n").concat(n);
},
ye = function (e) {
var t = e.path,
n = e.missingSymbols;
return "missing symbols.\n--- path ---\n".concat(t, "\n--- missing symbols ---\n").concat(n);
},
ve = function (e) {
var t = e.path,
n = e.unexpectedSymbols,
r = e.missingSymbols;
return "unexpected and missing symbols.\n--- path ---\n".concat(t, "\n--- unexpected symbols ---\n").concat(n, "\n--- missing symbols ---\n").concat(r);
},
be = function (e) {
for (var t = e; t;) {
var n = t.children;
if (0 === n.length) break;
t = n[n.length - 1];
}
return t;
},
he = function (e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
var a = !0,
c = !1,
o = void 0;
try {
for (var i, u = e[Symbol.iterator](); !(a = (i = u.next()).done); a = !0) {
var p = i.value.apply(void 0, n);
if (null != p) return p;
}
} catch (e) {
c = !0, o = e;
} finally {
try {
a || null == u.return || u.return();
} finally {
if (c) throw o;
}
}
},
ge = (e("assert", function (e) {
var t = e.message,
n = function (e) {
var t = e.actual,
n = e.expected,
r = f({
type: "root",
actual: t,
expected: n
});
return r.failed = !s(r), r;
}({
actual: e.actual,
expected: e.expected
});
if (n.failed) throw ge(t || function (e) {
var t = be(e);
return he([re, Z, oe, le, se, X], t);
}(n));
}), e("isAssertionError", function (e) {
return e && "object" === t(e) && "AssertionError" === e.name;
}), function (e) {
var t = new Error(e);
return t.name = "AssertionError", t;
});
}
};
});
//# sourceMappingURL=./main.js.map

@@ -1,2 +0,151 @@

"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},c=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(c=c.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),c.forEach(function(n){t(e,n,r[n])})}return e}function r(e,t){if(null==e)return{};var n,r,c=function(e,t){if(null==e)return{};var n,r,c={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(c[n]=e[n]);return c}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}function c(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(exports,"__esModule",{value:!0});var a=function(e,t){for(var n=Object.getPrototypeOf(e);n;){if(t(n))return!0;n=Object.getPrototypeOf(n)}return!1},o=function(t){return null!==t&&("object"===e(t)||"function"==typeof t)},u=function(e){return!o(e)},i=function(e,t){for(var n,r=(n=e,{next:function(){var e=l(n);return n=e,{done:!e,value:e}}}),c=r.next();!c.done;){var a=c.value;if(t(a))return a;c=r.next()}return null},p=function(e){return e.children[e.children.length-1]},l=function(e){var t=function(e){var t=e.parent;if(!t)return null;var n=t.children,r=n.indexOf(e);return 0===r?null:n[r-1]}(e);if(t){var n=function(e){for(var t=p(e);t;){var n=p(t);if(!n)break;t=n}return t}(t);return n||t}return e.parent},f=function(e){var t=e.type,n=e.data,r=e.actual,c=e.expected,a=e.parent,o=void 0===a?null:a,u=e.children;return{type:t,data:n,actual:r,expected:c,parent:o,children:void 0===u?[]:u}},d=function(e){var t=e.actual,n=e.expected;if(u(n)||u(t))return y(e),!e.failed;var r=i(e,function(t){return t!==e&&t.expected===e.expected});if(r)return r.actual===e.actual?(s(e,{type:"reference",actual:r,expected:r,comparer:function(){return!0}}),!0):(s(e,{type:"reference",actual:i(e,function(t){return t!==e&&t.actual===e.actual}),expected:r,comparer:function(e){return e.actual===e.expected}}),!e.failed);var c=i(e,function(t){return t!==e&&t.actual===e.actual});return c?(s(e,{type:"reference",actual:c,expected:null,comparer:function(){return!1}}),!1):(y(e),!e.failed||(e.failed=!1,b(e),!e.failed&&(h(e),!e.failed&&(x(e),!e.failed&&(m(e),!e.failed&&(O(e),!e.failed&&(j(e),!e.failed&&(w(e),!e.failed&&(!("valueOf"in n&&"function"==typeof n.valueOf&&(z(e),e.failed))&&(!v(n)||(A(e),!e.failed)))))))))))},s=function(e,t){var n=t.type,r=t.data,c=t.actual,a=t.expected,o=t.comparer,u=void 0===o?d:o,i=f({type:n,data:r,actual:c,expected:a,parent:e});return e.children.push(i),i.failed=!u(i),e.failed=i.failed,i},y=function(e){var t=e.actual,n=e.expected;s(e,{type:"identity",actual:t,expected:n,comparer:function(){return Object.is(n,-0)?Object.is(t,-0):Object.is(t,-0)?Object.is(n,-0):t===n}})},v=function(e){return a(e,function(e){var t=e.constructor;return t&&"RegExp"===t.name})},b=function(e){s(e,{type:"prototype",actual:Object.getPrototypeOf(e.actual),expected:Object.getPrototypeOf(e.expected)})},x=function(e){s(e,{type:"extensibility",actual:Object.isExtensible(e.actual)?"extensible":"non-extensible",expected:Object.isExtensible(e.expected)?"extensible":"non-extensible",comparer:function(e){return e.actual===e.expected}})},h=function(e){s(e,{type:"integrity",actual:g(e.actual),expected:g(e.expected),comparer:function(e){return e.actual===e.expected}})},g=function(e){return Object.isFrozen(e)?"frozen":Object.isSealed(e)?"sealed":"none"},m=function(e){var t=e.actual,n=e.expected,r=Object.getOwnPropertyNames(n),c=Object.getOwnPropertyNames(t),a=r.filter(function(e){return-1===c.indexOf(e)}),o=c.filter(function(e){return-1===r.indexOf(e)});s(e,{type:"properties",actual:{missing:a,extra:o},expected:{missing:[],extra:[]},comparer:function(){return 0===a.length&&0===o.length}}),e.failed||s(e,{type:"properties-order",actual:c,expected:r,comparer:function(){return c.join("")===r.join("")}})},O=function(e){var t=e.actual,n=e.expected,r=Object.getOwnPropertySymbols(n),c=Object.getOwnPropertySymbols(t),a=r.filter(function(e){return-1===c.indexOf(e)}),o=c.filter(function(e){return-1===r.indexOf(e)});s(e,{type:"symbols",actual:{missing:a,extra:o},expected:{missing:[],extra:[]},comparer:function(){return 0===a.length&&0===o.length}})},j=function(e){var t=e.expected,n=Object.getOwnPropertyNames(t),r=!0,c=!1,a=void 0;try{for(var o,u=n[Symbol.iterator]();!(r=(o=u.next()).done);r=!0){var i=o.value;if(S(e,i,t),e.failed)break}}catch(e){c=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(c)throw a}}},w=function(e){var t=e.expected,n=Object.getOwnPropertySymbols(t),r=!0,c=!1,a=void 0;try{for(var o,u=n[Symbol.iterator]();!(r=(o=u.next()).done);r=!0){var i=o.value;if(S(e,i,t),e.failed)break}}catch(e){c=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(c)throw a}}},S=function(e,t,n){var r=e.actual,c=e.expected,a=Object.getOwnPropertyDescriptor(c,t),o=Object.getOwnPropertyDescriptor(r,t);if(!s(e,{type:"property-configurable",data:t,actual:o.configurable?"configurable":"non-configurable",expected:a.configurable?"configurable":"non-configurable",comparer:function(e){return e.actual===e.expected}}).failed&&(!s(e,{type:"property-enumerable",data:t,actual:o.enumerable?"enumerable":"non-enumerable",expected:a.enumerable?"enumerable":"non-enumerable",comparer:function(e){return e.actual===e.expected}}).failed&&!(s(e,{type:"property-writable",data:t,actual:o.writable?"writable":"non-writable",expected:a.writable?"writable":"non-writable",comparer:function(e){return e.actual===e.expected}}).failed||N(n)&&"stack"===t))){if("function"==typeof n){if("caller"===t)return;if("arguments"===t)return}if(!s(e,{type:"property-get",data:t,actual:o.get,expected:a.get}).failed)if(!s(e,{type:"property-set",data:t,actual:o.set,expected:a.set}).failed)s(e,{type:"property-value",data:E(c)?P(t):t,actual:o.value,expected:a.value}).failed}},P=function(e){if("string"!=typeof e)return e;var t=parseInt(e,10);return Number.isInteger(t)&&t>=0?t:e},E=function(e){return a(e,function(e){var t=e.constructor;return t&&"Array"===t.name})},N=function(e){return a(e,function(e){var t=e.constructor;return t&&"Error"===t.name})},z=function(e){s(e,{type:"value-of-return-value",actual:e.actual.valueOf(),expected:e.expected.valueOf()})},A=function(e){s(e,{type:"to-string-return-value",actual:e.actual.toString(),expected:e.expected.toString()})},R=function(e,t){var n=t.parenthesis,r=t.useNew,c=e;return n&&(c="(".concat(e,")")),r&&(c="new ".concat(c)),c},k=function(e){var t=e.count,n=e.useTabs,r=e.size;return n?"\n"+"\t".repeat(t):"\n"+" ".repeat(t*r)},T=function(e,t){var n=t.depth,r=void 0===n?0:n,c=t.indentUsingTab,a=t.indentSize;return"".concat(k({count:r+1,useTabs:c,size:a})).concat(e)},V=function(e,t){return"".concat(T(e,t)).concat((r=(n=t).depth,c=void 0===r?0:r,a=n.indentUsingTab,o=n.indentSize,k({count:c,useTabs:a,size:o})));var n,r,c,a,o},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.seen,c=void 0===r?[]:r;if(c.indexOf(e)>-1)return"Symbol.for('circular')";c.push(e);for(var a,o="",u=Object.getOwnPropertyNames(e),i=0,p=u.length,l=t.depth,f=void 0===l?0:l,d=t.compact,s=n({},t,{depth:f+1,seen:c});i<p;){var y=u[i],v=parseInt(y,10),b=U(Number.isInteger(v)?v:y,s),x=U(e[y],s);o+=d?0===i?"".concat(b,": ").concat(x):", ".concat(b,": ").concat(x):0===i?"".concat(b,": ").concat(x):",".concat(T("".concat(b,": ").concat(x),t)),i++}return a=o.length?"".concat(d?o:V(o,t)):"",a=t.objectConstructor?"Object({".concat(a,"})"):"{".concat(a,"}"),R(a,t)},B=Object.prototype.toString,D={Array:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.seen,c=void 0===r?[]:r;if(c.indexOf(e)>-1)return"Symbol.for('circular')";c.push(e);for(var a,o="",u=0,i=e.length,p=t.compact,l=t.depth,f=n({},t,{depth:(void 0===l?0:l)+1,seen:c});u<i;){var d=e.hasOwnProperty(u)?U(e[u],f):"";o+=p?0===u?d:d?", ".concat(d):",":0===u?d:",".concat(T(d,t)),u++}return a=o.length?p?"".concat(o):V(o,t):"",a="[".concat(a,"]"),R(a,t)},Boolean:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.depth,c=void 0===r?0:r,a=U(e.valueOf(),n({},t,{depth:c+1}));return R("Boolean(".concat(a,")"),t)},Date:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.depth,c=void 0===r?0:r,a=U(e.valueOf(),n({},t,{depth:c+1}));return R("Date(".concat(a,")"),t)},Error:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.depth,c=void 0===r?0:r,a=U(e.message,n({},t,{depth:c+1}));return R("".concat(e.name,"(").concat(a,")"),t)},Number:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.depth,c=void 0===r?0:r,a=U(e.valueOf(),n({},t,{depth:c+1}));return R("Number(".concat(a,")"),t)},Object:I,RegExp:function(e){return e.toString()},String:function(e,t){var r=t.depth,c=void 0===r?0:r,a=U(e.valueOf(),n({},t,{depth:c+1}));return R("String(".concat(a,")"),t)}},F=function(e,t){var n=t.singleQuote,r=function(e){for(var t=String(e),n=0,r=t.length,c="";n<r;){var a=t[n];c+='"'===a||"'"===a||"\\"===a?"\\".concat(a):"\n"===a?"\\n":"\r"===a?"\\r":"\u2028"===a?"\\u2028":"\u2029"===a?"\\u2029":a,n++}return c}(e);return n?"'".concat(r,"'"):'"'.concat(r,'"')},C={boolean:function(e){return e.toString()},function:function(e,t){var n,r=t.showFunctionBody,c=t.parenthesis,a=t.depth;if(r)n=e.toString();else{var o=void 0===e.prototype?"() =>":"function ".concat(0===a?e.name:"","()");n="".concat(o," {/* hidden */}")}return c?"(".concat(n,")"):n},null:function(){return"null"},number:function(e){return Object.is(e,-0)?"-0":e.toString()},object:function(t,r){var c=function(t){if("object"===e(t)&&null===Object.getPrototypeOf(t))return"Object";var n=B.call(t).slice("[object ".length,-1);if("Object"===n){var r=t.constructor.name;if("Object"!==r)return r}return n}(t);return c in D?D[c](t,r):R("".concat(c,"(").concat(I(t,r),")"),n({},r,{parenthesis:!1}))},string:F,symbol:function(e,t){var n=e.toString(),r=n.indexOf("("),c=n.indexOf(")"),a=n.slice(r+1,c),o=a?F(a,t):"",u="Symbol(".concat(o,")");return t.parenthesis?"".concat(u):u},undefined:function(){return"undefined"}},U=function(t){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=c.parenthesis,o=void 0!==a&&a,u=c.singleQuote,i=void 0!==u&&u,p=c.useNew,l=void 0!==p&&p,f=c.objectConstructor,d=void 0!==f&&f,s=c.compact,y=void 0!==s&&s,v=c.showFunctionBody,b=void 0!==v&&v,x=c.indentUsingTab,h=void 0!==x&&x,g=c.indentSize,m=void 0===g?2:g,O=c.depth,j=void 0===O?0:O,w=r(c,["parenthesis","singleQuote","useNew","objectConstructor","compact","showFunctionBody","indentUsingTab","indentSize","depth"]),S=function(t){return null===t?"null":void 0===t?"undefined":e(t)}(t);return C[S](t,n({parenthesis:o,singleQuote:i,useNew:l,objectConstructor:d,compact:y,showFunctionBody:b,indentUsingTab:h,indentSize:m,depth:j},w))},Q=function(e){var t=Object.getOwnPropertyNames(Symbol).find(function(t){return e===Symbol[t]});if(t)return"Symbol".concat(q(t));var n=_(e);return n?Symbol.keyFor(e)?"Symbol.for(".concat(U(n),")"):"Symbol(".concat(U(n),")"):"Symbol()"},_=function(e){var t=e.toString(),n=t.indexOf("("),r=t.indexOf(")");return t.slice(n+1,r)},q=function(e){return"number"==typeof e?"[".concat(U(e),"]"):"string"==typeof e?/^[a-z_$]+[0-9a-z_&]$/i.test(e)?".".concat(e):"[".concat(U(e),"]"):"[".concat(Q(e),"]")},M=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",n=[],r=e.parent;r&&"root"!==r.type;)n.unshift(r),r=r.parent;return"root"!==e.type&&n.push(e),n.reduce(function(e,t){var n=t.type,r=t.data;return"property-enumerable"===n?"".concat(e).concat(q(r),"[[Enumerable]]"):"property-configurable"===n?"".concat(e).concat(q(r),"[[Configurable]]"):"property-writable"===n?"".concat(e).concat(q(r),"[[Writable]]"):"property-get"===n?"".concat(e).concat(q(r),"[[Get]]"):"property-set"===n?"".concat(e).concat(q(r),"[[Set]]"):"property-value"===n?"".concat(e).concat(q(r)):"reference"===n?"".concat(e):"integrity"===n?"".concat(e,"[[Integrity]]"):"extensibility"===n?"".concat(e,"[[Extensible]]"):"prototype"===n?"".concat(e,"[[Prototype]]"):"properties"===n?"".concat(e):"properties-order"===n?"".concat(e):"symbols"===n?"".concat(e):"to-string-return-value"===n?"".concat(e,".toString()"):"value-of-return-value"===n?"".concat(e,".valueOf()"):"identity"===n?e:"".concat(e," type:").concat(n,", data:").concat(r)},t)},W=function(e){var t=H(e);return t?t.slice(1).reduce(function(e,t){return"".concat(e).concat(q(t))},t[0]):null},$=new WeakMap,G=new Map,H=function(e){return $.get(e)},J=function(e,t){!function e(t,n){if(function(e){return!o(e)}(t))G.set(t,n);else if(!$.has(t)){$.set(t,n);var r=function(r){var a=Object.getOwnPropertyDescriptor(t,r);if("value"in a){var o=a.value;e(o,c(n).concat([r]))}};Object.getOwnPropertyNames(t).forEach(function(e){return r(e)}),Object.getOwnPropertySymbols(t).forEach(function(e){return r(e)})}}(e,[t])};"object"===("undefined"==typeof global?"undefined":e(global))&&J(global,"global"),"object"===("undefined"==typeof window?"undefined":e(window))&&J(window,"window");var K=function(e){return W(e)||U(e)},L=function(e){var t=M(e,"actual"),n=K(e.expected),r=K(e.actual);return X({path:t,expectedValue:n,actualValue:r})},X=function(e){var t=e.path,n=e.expectedValue,r=e.actualValue;return"unequal values.\n--- path ---\n".concat(t,"\n--- expected value ---\n").concat(n,"\n--- actual value ---\n").concat(r)},Y=function(e){if("reference"===e.type){var t=e.actual,n=e.expected,r=n&&!t,c=!n&&t,a=M(e,"actual");return c?Z({path:a,expectedValue:K(e.parent.expected),unexpectedReferencePath:M(t,"actual")}):r?ee({path:a,expectedReferencePath:M(n,"expected"),actualValue:K(e.parent.actual)}):te({path:a,expectedReferencePath:M(n,"expected"),actualReferencePath:M(t,"actual")})}},Z=function(e){var t=e.path,n=e.expectedValue,r=e.unexpectedReferencePath;return"unexpected reference.\n--- path ---\n".concat(t,"\n--- expected value ---\n").concat(n,"\n--- unexpected reference path ---\n").concat(r)},ee=function(e){var t=e.path,n=e.expectedReferencePath,r=e.actualValue;return"missing reference.\n--- path ---\n".concat(t,"\n--- expected reference path ---\n").concat(n,"\n--- actual value ---\n").concat(r)},te=function(e){var t=e.path,n=e.expectedReferencePath,r=e.actualReferencePath;return"unequal references.\n--- path ---\n".concat(t,"\n--- expected reference path ---\n").concat(n,"\n--- actual reference path ---\n").concat(r)},ne=function(e){var t=re(e);if(!t)return null;var n=function(e){for(var t=e;t&&t.parent;)t=t.parent;return t}(e),r=M(t,"actual"),c=function(e){var t=W(e);return t||(e===n.expected?"expected":e===n.actual?"actual":U(e))},a=t.expected,o=t.actual;return ce({path:r,expectedPrototype:c(a),actualPrototype:c(o)})},re=function(e){for(var t,n=e;n;){if(n&&"prototype"===n.type){for(n=(t=n).parent;n;)"prototype"===n.type&&(t=n),n=n.parent;return t}n=n.parent}return null},ce=function(e){var t=e.path,n=e.expectedPrototype,r=e.actualPrototype;return"unequal prototypes.\n--- path ---\n".concat(t,"\n--- expected prototype ---\n").concat(n,"\n--- actual prototype ---\n").concat(r)},ae=function(e){if("properties"===e.type){var t=M(e,"actual"),n=e.actual.extra,r=e.actual.missing;return n&&!r?oe({path:t,unexpectedProperties:U(n)}):r&&!n?ue({path:t,missingProperties:U(r)}):ie({path:t,unexpectedProperties:U(n),missingProperties:U(r)})}},oe=function(e){var t=e.path,n=e.unexpectedProperties;return"unexpected properties.\n--- path ---\n".concat(t,"\n--- unexpected properties ---\n").concat(n)},ue=function(e){var t=e.path,n=e.missingProperties;return"missing properties.\n--- path ---\n".concat(t,"\n--- missing properties ---\n").concat(n)},ie=function(e){var t=e.path,n=e.unexpectedProperties,r=e.missingProperties;return"unexpected and missing properties.\n--- path ---\n".concat(t,"\n--- unexpected properties ---\n").concat(n,"\n--- missing properties ---\n").concat(r)},pe=function(e){if("properties-order"===e.type){var t=M(e,"actual"),n=e.expected,r=e.actual;return le({path:t,expectedPropertiesOrder:U(n),actualPropertiesOrder:U(r)})}},le=function(e){var t=e.path,n=e.expectedPropertiesOrder,r=e.actualPropertiesOrder;return"unexpected properties order.\n--- path ---\n".concat(t,"\n--- expected properties order ---\n").concat(n,"\n--- actual properties order ---\n").concat(r)},fe=function(e){if("symbols"===e.type){var t=M(e,"actual"),n=e.actual.extra,r=e.actual.missing;return n&&!r?de({path:t,unexpectedSymbols:U(n)}):r&&!n?se({path:t,missingSymbols:U(r)}):ye({path:t,unexpectedSymbols:U(n),missingSymbols:U(r)})}},de=function(e){var t=e.path,n=e.unexpectedSymbols;return"unexpected symbols.\n--- path ---\n".concat(t,"\n--- unexpected symbols ---\n").concat(n)},se=function(e){var t=e.path,n=e.missingSymbols;return"missing symbols.\n--- path ---\n".concat(t,"\n--- missing symbols ---\n").concat(n)},ye=function(e){var t=e.path,n=e.unexpectedSymbols,r=e.missingSymbols;return"unexpected and missing symbols.\n--- path ---\n".concat(t,"\n--- unexpected symbols ---\n").concat(n,"\n--- missing symbols ---\n").concat(r)},ve=function(e){for(var t=e;t;){var n=t.children;if(0===n.length)break;t=n[n.length-1]}return t},be=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var c=!0,a=!1,o=void 0;try{for(var u,i=e[Symbol.iterator]();!(c=(u=i.next()).done);c=!0){var p=u.value.apply(void 0,n);if(null!=p)return p}}catch(e){a=!0,o=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw o}}},xe=function(e){var t=new Error(e);return t.name="AssertionError",t};exports.assert=function(e){var t=e.message,n=function(e){var t=e.actual,n=e.expected,r=f({type:"root",actual:t,expected:n});return r.failed=!d(r),r}({actual:e.actual,expected:e.expected});if(n.failed)throw xe(t||function(e){var t=ve(e);return be([ne,Y,ae,pe,fe,L],t)}(n))},exports.isAssertionError=function(t){return t&&"object"===e(t)&&"AssertionError"===t.name};
'use strict';
var entryPointName = "main";
var groupMap = {
"best": {
"incompatibleNameArray": ["proposal-json-strings", "proposal-optional-catch-binding", "proposal-unicode-property-regex", "syntax-object-rest-spread", "syntax-optional-catch-binding", "transform-dotall-regex"],
"platformCompatMap": {
"node": "8.3"
}
},
"otherwise": {
"incompatibleNameArray": ["proposal-object-rest-spread", "proposal-optional-catch-binding", "proposal-unicode-property-regex", "proposal-json-strings", "syntax-object-rest-spread", "syntax-optional-catch-binding", "transform-async-to-promises", "transform-arrow-functions", "transform-block-scoped-functions", "transform-block-scoping", "transform-classes", "transform-computed-properties", "transform-destructuring", "transform-dotall-regex", "transform-duplicate-keys", "transform-exponentiation-operator", "transform-for-of", "transform-function-name", "transform-literals", "transform-new-target", "transform-object-super", "transform-parameters", "transform-shorthand-properties", "transform-spread", "transform-sticky-regex", "transform-template-literals", "transform-typeof-symbol", "transform-unicode-regex"],
"platformCompatMap": {}
}
};
var detect = function detect() {
return {
name: "node",
version: process.version.slice(1)
};
};
var valueToVersion = function valueToVersion(value) {
if (typeof value === "number") {
return numberToVersion(value);
}
if (typeof value === "string") {
return stringToVersion(value);
}
throw new TypeError(createValueErrorMessage({
version: value
}));
};
var numberToVersion = function numberToVersion(number) {
return {
major: number,
minor: 0,
patch: 0
};
};
var stringToVersion = function stringToVersion(string) {
if (string.indexOf(".") > -1) {
var parts = string.split(".");
return {
major: Number(parts[0]),
minor: parts[1] ? Number(parts[1]) : 0,
patch: parts[2] ? Number(parts[2]) : 0
};
}
if (isNaN(string)) {
return {
major: 0,
minor: 0,
patch: 0
};
}
return {
major: Number(string),
minor: 0,
patch: 0
};
};
var createValueErrorMessage = function createValueErrorMessage(_ref) {
var value = _ref.value;
return "value must be a number or a string.\nvalue: ".concat(value);
};
var versionCompare = function versionCompare(versionA, versionB) {
var semanticVersionA = valueToVersion(versionA);
var semanticVersionB = valueToVersion(versionB);
var majorDiff = semanticVersionA.major - semanticVersionB.major;
if (majorDiff > 0) {
return majorDiff;
}
if (majorDiff < 0) {
return majorDiff;
}
var minorDiff = semanticVersionA.minor - semanticVersionB.minor;
if (minorDiff > 0) {
return minorDiff;
}
if (minorDiff < 0) {
return minorDiff;
}
var patchDiff = semanticVersionA.patch - semanticVersionB.patch;
if (patchDiff > 0) {
return patchDiff;
}
if (patchDiff < 0) {
return patchDiff;
}
return 0;
};
var versionIsBelow = function versionIsBelow(versionSupposedBelow, versionSupposedAbove) {
return versionCompare(versionSupposedBelow, versionSupposedAbove) < 0;
};
var findHighestVersion = function findHighestVersion() {
for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {
values[_key] = arguments[_key];
}
if (values.length === 0) throw new Error("missing argument");
return values.reduce(function (highestVersion, value) {
if (versionIsBelow(highestVersion, value)) {
return value;
}
return highestVersion;
});
};
var nodeToCompileId = function nodeToCompileId(_ref, groupMap) {
var name = _ref.name,
version = _ref.version;
return Object.keys(groupMap).find(function (compileIdCandidate) {
var platformCompatMap = groupMap[compileIdCandidate].platformCompatMap;
if (name in platformCompatMap === false) {
return false;
}
var versionForGroup = platformCompatMap[name];
var highestVersion = findHighestVersion(version, versionForGroup);
return highestVersion === version;
});
};
// eslint-disable-next-line import/no-unresolved
var compileId = nodeToCompileId(detect(), groupMap); // eslint-disable-next-line import/no-dynamic-require
module.exports = require("./".concat(compileId, "/").concat(entryPointName, ".js"));
//# sourceMappingURL=main.js.map

35

package.json
{
"name": "@dmail/assert",
"version": "3.0.0",
"version": "3.1.0",
"license": "MIT",

@@ -12,21 +12,20 @@ "repository": {

},
"module": "index.js",
"browser": "dist/browser/main.js",
"main": "dist/node/main.js",
"module": "index.js",
"files": [
"index.js",
"src",
"dist"
"/index.js",
"/src/",
"/dist/"
],
"engines": {
"node": ">=8.6.0"
},
"dependencies": {
"@dmail/uneval": "4.4.0"
"@dmail/uneval": "4.5.0"
},
"devDependencies": {
"@jsenv/core": "4.10.0",
"@jsenv/core": "5.19.0",
"@jsenv/eslint-config": "8.0.0",
"@jsenv/eslint-import-resolver": "2.0.0",
"@jsenv/eslint-import-resolver": "4.2.0",
"@jsenv/prettier-config": "1.0.0",
"@jsenv/babel-plugin-description": "2.0.0",
"@jsenv/prettier-check-project": "1.7.0",
"@jsenv/babel-config-map": "1.0.0",
"babel-eslint": "11.0.0-beta.0",

@@ -41,15 +40,15 @@ "prettier": "1.15.3",

"generate-import-map": "node ./script/generate-import-map/generate-import-map.js",
"lint": "eslint .",
"check-format": "node ./script/check-format/check-format.js",
"start-browsing-server": "node ./script/start-browsing-server/start-browsing-server.js",
"test": "node ./script/test/test.js",
"eslint-check-project": "eslint .",
"prettier-check-project": "node ./script/prettier-check-project/prettier-check-project.js",
"generate-coverage": "node ./script/generate-coverage/generate-coverage.js",
"upload-coverage": "node ./script/upload-coverage/upload-coverage.js",
"start-browsing-server": "node ./script/start-browsing-server/start-browsing-server.js",
"clean": "rimraf dist && rimraf coverage",
"bundle-browser": "node ./script/bundle-browser/bundle-browser.js",
"bundle-node": "node ./script/bundle-node/bundle-node.js",
"dist": "npm run clean && npm run bundle-browser && npm run bundle-node",
"prepublishOnly": "npm run dist",
"reinstall": "npm run clean && rimraf node_modules && npm install"
"clean": "rimraf dist && rimraf coverage",
"reinstall": "npm run clean && rimraf node_modules && npm install",
"prepublishOnly": "npm run dist"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc