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

@microsoft/dynamicproto-js

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/dynamicproto-js - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

microsoft-dynamicproto-js-1.1.5.tgz

22

lib/dist/amd/dynamicproto-js.js
/*!
* Microsoft Dynamic Proto Utility, 1.1.4
* Microsoft Dynamic Proto Utility, 1.1.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
define(function () { 'use strict';
define((function () { 'use strict';

@@ -57,2 +57,6 @@ /**

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -120,4 +124,8 @@ * @ignore

// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;

@@ -220,2 +228,3 @@ }

return function () {
// eslint-disable-next-line prefer-rest-params
return theFunc.apply(target, arguments);

@@ -329,2 +338,3 @@ };

var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
// eslint-disable-next-line prefer-rest-params
return instFunc.apply(this, arguments);

@@ -379,4 +389,6 @@ };

}
return false;
}
return false;
// If objGetPrototypeOf doesn't exist then just assume everything is ok.
return true;
}

@@ -506,3 +518,3 @@ /**

});
}));
//# sourceMappingURL=dynamicproto-js.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.4
* Microsoft Dynamic Proto Utility, 1.1.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
define(function(){"use strict";var u="constructor",p="prototype",h="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",I="_dynCls$",w="_dynInstChk",O=w,P="_dfOpts",t="_unknown_",r="__proto__",m="useBaseInst",C="setInstFuncs",o=Object,F=o.getPrototypeOf,k=0;function b(n,r){return n&&o[p].hasOwnProperty.call(n,r)}function B(n){return n&&(n===o[p]||n===Array[p])}function D(n){return B(n)||n===Function[p]}function $(n){if(n){if(F)return F(n);if(n=n[r]||n[p]||(n[u]?n[u][p]:null))return n}return null}function j(n,r){var t=[],u=o.getOwnPropertyNames;if(u)t=u(n);else for(var i in n)"string"==typeof i&&b(n,i)&&t.push(i);if(t&&0<t.length)for(var e=0;e<t.length;e++)r(t[e])}function x(n,r,t){return r!==u&&typeof n[r]===h&&(t||b(n,r))}function A(n){throw new TypeError("DynamicProto: "+n)}function E(n,r){for(var t=n.length-1;0<=t;t--)if(n[t]===r)return 1}function M(n,r){return b(n,p)?n.name||r||t:((n||{})[u]||{}).name||r||t}function N(n,u,r,t){b(n,p)||A("theClass is an invalid class definition.");var i=n[p];!function(n){if(F)for(var r=[],t=$(u);t&&!D(t)&&!E(r,t);){if(t===n)return 1;r.push(t),t=$(t)}}(i)&&A("["+M(n)+"] is not in class hierarchy of ["+M(u)+"]");var e=null;b(i,g)?e=i[g]:(e=I+M(n,"_")+"$"+k,k++,i[g]=e);var o=N[P],f=!!o[m];f&&t&&t[m]!==undefined&&(f=!!t[m]);var s,a,c,l,v,y,n=(a={},j(s=u,function(n){!a[n]&&x(s,n,!1)&&(a[n]=s[n])}),a);r(u,function(n,r,t,e){function u(n,r,t){var u,i=r[t];return i[d]&&e&&!1!==(u=n[_]||{})[O]&&(i=(u[r[g]]||{})[t]||i),function(){return i.apply(n,arguments)}}var i={};j(t,function(n){i[n]=u(r,t,n)});for(var o=$(n),f=[];o&&!D(o)&&!E(f,o);)j(o,function(n){!i[n]&&x(o,n,!F)&&(i[n]=u(r,o,n))}),f.push(o),o=$(o);return i}(i,u,n,f)),o=!!F&&!!o[C],c=i,e=e,l=u,v=n,t=!1!==(o=o&&t?!!t[C]:o),B(c)||(o=l[_]=l[_]||{},y=o[e]=o[e]||{},!1!==o[O]&&(o[O]=!!t),j(l,function(n){var t,u,i;x(l,n,!1)&&l[n]!==v[n]&&(y[n]=l[n],delete l[n],b(c,n)&&(!c[n]||c[n][d])||(c[n]=(t=c,u=n,(i=function(){var n,r;return(function(n,r,t,u){var i=null;if(n&&b(t,g)){var e=n[_]||{};if((i=(e[t[g]]||{})[r])||A("Missing ["+r+"] "+h),!i[w]&&!1!==e[O]){for(var o=!b(n,r),f=$(n),s=[];o&&f&&!D(f)&&!E(s,f);){var a=f[r];if(a){o=a===u;break}s.push(f),f=$(f)}try{o&&(n[r]=i),i[w]=1}catch(c){e[O]=!1}}}return i}(this,u,t,i)||(typeof(r=(r=t[n=u])===i?$(t)[n]:r)!==h&&A("["+n+"] is not a "+h),r)).apply(this,arguments)})[d]=1,i)))}))}return N[P]={setInstFuncs:!0,useBaseInst:!0},N});
define(function(){"use strict";var u="constructor",v="prototype",h="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",I="_dynInstChk",P=I,w="_dfOpts",r="_dynProto",e="_unknown_",i="__proto__",O="useBaseInst",m="setInstFuncs",o=Object,C=o.getPrototypeOf,F=0;function k(n,t){return n&&o[v].hasOwnProperty.call(n,t)}function b(n){return n&&(n===o[v]||n===Array[v])}function B(n){return b(n)||n===Function[v]}function D(n){if(n){if(C)return C(n);var t=n[r]||n[i]||n[v]||(n[u]?n[u][v]:null);if(t)return n[r]||(n[r]=t),t}return null}function $(n,t){var r=[],u=o.getOwnPropertyNames;if(u)r=u(n);else for(var e in n)"string"==typeof e&&k(n,e)&&r.push(e);if(r&&0<r.length)for(var i=0;i<r.length;i++)t(r[i])}function j(n,t,r){return t!==u&&typeof n[t]===h&&(r||k(n,t))}function x(n){throw new TypeError("DynamicProto: "+n)}function A(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function E(n,t){return k(n,v)?n.name||t||e:((n||{})[u]||{}).name||t||e}function M(n,u,t,r){k(n,v)||x("theClass is an invalid class definition.");var e,i,o,f,s,a,c=n[v],l=(function(n){if(!C)return 1;for(var t=[],r=D(u);r&&!B(r)&&!A(t,r);){if(r===n)return 1;t.push(r),r=D(r)}}(c)||x("["+E(n)+"] is not in class hierarchy of ["+E(u)+"]"),null),n=(k(c,g)?l=c[g]:(l="_dynCls$"+E(n,"_")+"$"+F,F++,c[g]=l),M[w]),y=!!n[O],p=(y&&r&&r[O]!==undefined&&(y=!!r[O]),i={},$(e=u,function(n){!i[n]&&j(e,n,!1)&&(i[n]=e[n])}),i),y=(t(u,function(n,t,r,i){function u(n,t,r){var u,e=t[r];return e[d]&&i&&!1!==(u=n[_]||{})[P]&&(e=(u[t[g]]||{})[r]||e),function(){return e.apply(n,arguments)}}for(var e={},o=($(r,function(n){e[n]=u(t,r,n)}),D(n)),f=[];o&&!B(o)&&!A(f,o);)$(o,function(n){!e[n]&&j(o,n,!C)&&(e[n]=u(t,o,n))}),f.push(o),o=D(o);return e}(c,u,p,y)),!!C&&!!n[m]);o=c,t=l,f=u,s=p,n=!1!==(y=y&&r?!!r[m]:y),b(o)||(c=f[_]=f[_]||{},a=c[t]=c[t]||{},!1!==c[P]&&(c[P]=!!n),$(f,function(n){var r,u,e;j(f,n,!1)&&f[n]!==s[n]&&(a[n]=f[n],delete f[n],k(o,n)&&(!o[n]||o[n][d])||(o[n]=(r=o,u=n,(e=function(){var n,t;return(function(n,t,r,u){var e=null;if(n&&k(r,g)){var i=n[_]||{};if((e=(i[r[g]]||{})[t])||x("Missing ["+t+"] "+h),!e[I]&&!1!==i[P]){for(var o=!k(n,t),f=D(n),s=[];o&&f&&!B(f)&&!A(s,f);){var a=f[t];if(a){o=a===u;break}s.push(f),f=D(f)}try{o&&(n[t]=e),e[I]=1}catch(c){i[P]=!1}}}return e}(this,u,r,e)||(typeof(t=(t=r[n=u])===e?D(r)[n]:t)!==h&&x("["+n+"] is not a "+h),t)).apply(this,arguments)})[d]=1,e)))}))}return M[w]={setInstFuncs:!0,useBaseInst:!0},M});
//# sourceMappingURL=dynamicproto-js.min.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.4
* Microsoft Dynamic Proto Utility, 1.1.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -57,2 +57,6 @@ */

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -120,4 +124,8 @@ * @ignore

// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;

@@ -220,2 +228,3 @@ }

return function () {
// eslint-disable-next-line prefer-rest-params
return theFunc.apply(target, arguments);

@@ -329,2 +338,3 @@ };

var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
// eslint-disable-next-line prefer-rest-params
return instFunc.apply(this, arguments);

@@ -379,4 +389,6 @@ };

}
return false;
}
return false;
// If objGetPrototypeOf doesn't exist then just assume everything is ok.
return true;
}

@@ -383,0 +395,0 @@ /**

/*!
* Microsoft Dynamic Proto Utility, 1.1.4
* Microsoft Dynamic Proto Utility, 1.1.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
"use strict";var u="constructor",y="prototype",h="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",I="_dynCls$",m="_dynInstChk",w=m,O="_dfOpts",t="_unknown_",r="__proto__",P="useBaseInst",C="setInstFuncs",o=Object,F=o.getPrototypeOf,k=0;function b(n,r){return n&&o[y].hasOwnProperty.call(n,r)}function x(n){return n&&(n===o[y]||n===Array[y])}function B(n){return x(n)||n===Function[y]}function D(n){if(n){if(F)return F(n);if(n=n[r]||n[y]||(n[u]?n[u][y]:null))return n}return null}function $(n,r){var t=[],u=o.getOwnPropertyNames;if(u)t=u(n);else for(var e in n)"string"==typeof e&&b(n,e)&&t.push(e);if(t&&0<t.length)for(var i=0;i<t.length;i++)r(t[i])}function j(n,r,t){return r!==u&&typeof n[r]===h&&(t||b(n,r))}function A(n){throw new TypeError("DynamicProto: "+n)}function E(n,r){for(var t=n.length-1;0<=t;t--)if(n[t]===r)return 1}function M(n,r){return b(n,y)?n.name||r||t:((n||{})[u]||{}).name||r||t}function N(n,u,r,t){b(n,y)||A("theClass is an invalid class definition.");var e=n[y];!function(n){if(F)for(var r=[],t=D(u);t&&!B(t)&&!E(r,t);){if(t===n)return 1;r.push(t),t=D(t)}}(e)&&A("["+M(n)+"] is not in class hierarchy of ["+M(u)+"]");var i=null;b(e,g)?i=e[g]:(i=I+M(n,"_")+"$"+k,k++,e[g]=i);var o=N[O],f=!!o[P];f&&t&&t[P]!==undefined&&(f=!!t[P]);var s,a,c,l,p,v,n=(a={},$(s=u,function(n){!a[n]&&j(s,n,!1)&&(a[n]=s[n])}),a);r(u,function(n,r,t,i){function u(n,r,t){var u,e=r[t];return e[d]&&i&&!1!==(u=n[_]||{})[w]&&(e=(u[r[g]]||{})[t]||e),function(){return e.apply(n,arguments)}}var e={};$(t,function(n){e[n]=u(r,t,n)});for(var o=D(n),f=[];o&&!B(o)&&!E(f,o);)$(o,function(n){!e[n]&&j(o,n,!F)&&(e[n]=u(r,o,n))}),f.push(o),o=D(o);return e}(e,u,n,f)),o=!!F&&!!o[C],c=e,i=i,l=u,p=n,t=!1!==(o=o&&t?!!t[C]:o),x(c)||(o=l[_]=l[_]||{},v=o[i]=o[i]||{},!1!==o[w]&&(o[w]=!!t),$(l,function(n){var t,u,e;j(l,n,!1)&&l[n]!==p[n]&&(v[n]=l[n],delete l[n],b(c,n)&&(!c[n]||c[n][d])||(c[n]=(t=c,u=n,(e=function(){var n,r;return(function(n,r,t,u){var e=null;if(n&&b(t,g)){var i=n[_]||{};if((e=(i[t[g]]||{})[r])||A("Missing ["+r+"] "+h),!e[m]&&!1!==i[w]){for(var o=!b(n,r),f=D(n),s=[];o&&f&&!B(f)&&!E(s,f);){var a=f[r];if(a){o=a===u;break}s.push(f),f=D(f)}try{o&&(n[r]=e),e[m]=1}catch(c){i[w]=!1}}}return e}(this,u,t,e)||(typeof(r=(r=t[n=u])===e?D(t)[n]:r)!==h&&A("["+n+"] is not a "+h),r)).apply(this,arguments)})[d]=1,e)))}))}N[O]={setInstFuncs:!0,useBaseInst:!0},module.exports=N;
"use strict";var u="constructor",v="prototype",h="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",I="_dynInstChk",P=I,m="_dfOpts",r="_dynProto",o="_unknown_",e="__proto__",w="useBaseInst",O="setInstFuncs",i=Object,C=i.getPrototypeOf,F=0;function k(n,t){return n&&i[v].hasOwnProperty.call(n,t)}function b(n){return n&&(n===i[v]||n===Array[v])}function x(n){return b(n)||n===Function[v]}function B(n){if(n){if(C)return C(n);var t=n[r]||n[e]||n[v]||(n[u]?n[u][v]:null);if(t)return n[r]||(n[r]=t),t}return null}function D(n,t){var r=[],u=i.getOwnPropertyNames;if(u)r=u(n);else for(var o in n)"string"==typeof o&&k(n,o)&&r.push(o);if(r&&0<r.length)for(var e=0;e<r.length;e++)t(r[e])}function $(n,t,r){return t!==u&&typeof n[t]===h&&(r||k(n,t))}function j(n){throw new TypeError("DynamicProto: "+n)}function A(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function E(n,t){return k(n,v)?n.name||t||o:((n||{})[u]||{}).name||t||o}function M(n,u,t,r){k(n,v)||j("theClass is an invalid class definition.");var o,e,i,f,s,a,c=n[v],l=(function(n){if(!C)return 1;for(var t=[],r=B(u);r&&!x(r)&&!A(t,r);){if(r===n)return 1;t.push(r),r=B(r)}}(c)||j("["+E(n)+"] is not in class hierarchy of ["+E(u)+"]"),null),n=(k(c,g)?l=c[g]:(l="_dynCls$"+E(n,"_")+"$"+F,F++,c[g]=l),M[m]),y=!!n[w],p=(y&&r&&r[w]!==undefined&&(y=!!r[w]),e={},D(o=u,function(n){!e[n]&&$(o,n,!1)&&(e[n]=o[n])}),e),y=(t(u,function(n,t,r,e){function u(n,t,r){var u,o=t[r];return o[d]&&e&&!1!==(u=n[_]||{})[P]&&(o=(u[t[g]]||{})[r]||o),function(){return o.apply(n,arguments)}}for(var o={},i=(D(r,function(n){o[n]=u(t,r,n)}),B(n)),f=[];i&&!x(i)&&!A(f,i);)D(i,function(n){!o[n]&&$(i,n,!C)&&(o[n]=u(t,i,n))}),f.push(i),i=B(i);return o}(c,u,p,y)),!!C&&!!n[O]);i=c,t=l,f=u,s=p,n=!1!==(y=y&&r?!!r[O]:y),b(i)||(c=f[_]=f[_]||{},a=c[t]=c[t]||{},!1!==c[P]&&(c[P]=!!n),D(f,function(n){var r,u,o;$(f,n,!1)&&f[n]!==s[n]&&(a[n]=f[n],delete f[n],k(i,n)&&(!i[n]||i[n][d])||(i[n]=(r=i,u=n,(o=function(){var n,t;return(function(n,t,r,u){var o=null;if(n&&k(r,g)){var e=n[_]||{};if((o=(e[r[g]]||{})[t])||j("Missing ["+t+"] "+h),!o[I]&&!1!==e[P]){for(var i=!k(n,t),f=B(n),s=[];i&&f&&!x(f)&&!A(s,f);){var a=f[t];if(a){i=a===u;break}s.push(f),f=B(f)}try{i&&(n[t]=o),o[I]=1}catch(c){e[P]=!1}}}return o}(this,u,r,o)||(typeof(t=(t=r[n=u])===o?B(r)[n]:t)!==h&&j("["+n+"] is not a "+h),t)).apply(this,arguments)})[d]=1,o)))}))}M[m]={setInstFuncs:!0,useBaseInst:!0},module.exports=M;
//# sourceMappingURL=dynamicproto-js.min.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.4
* Microsoft Dynamic Proto Utility, 1.1.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -55,2 +55,6 @@ */

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -118,4 +122,8 @@ * @ignore

// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;

@@ -218,2 +226,3 @@ }

return function () {
// eslint-disable-next-line prefer-rest-params
return theFunc.apply(target, arguments);

@@ -327,2 +336,3 @@ };

var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
// eslint-disable-next-line prefer-rest-params
return instFunc.apply(this, arguments);

@@ -377,4 +387,6 @@ };

}
return false;
}
return false;
// If objGetPrototypeOf doesn't exist then just assume everything is ok.
return true;
}

@@ -502,3 +514,3 @@ /**

export default dynamicProto;
export { dynamicProto as default };
//# sourceMappingURL=dynamicproto-js.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.4
* Microsoft Dynamic Proto Utility, 1.1.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -55,2 +55,6 @@ */

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -118,4 +122,8 @@ * @ignore

// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;

@@ -218,2 +226,3 @@ }

return function () {
// eslint-disable-next-line prefer-rest-params
return theFunc.apply(target, arguments);

@@ -327,2 +336,3 @@ };

var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
// eslint-disable-next-line prefer-rest-params
return instFunc.apply(this, arguments);

@@ -377,4 +387,6 @@ };

}
return false;
}
return false;
// If objGetPrototypeOf doesn't exist then just assume everything is ok.
return true;
}

@@ -502,3 +514,3 @@ /**

export default dynamicProto;
export { dynamicProto as default };
//# sourceMappingURL=dynamicproto-js.min.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.4
* Microsoft Dynamic Proto Utility, 1.1.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
this.Microsoft = this.Microsoft || {};
this.Microsoft['DynamicProto-JS'] = (function () {
this.Microsoft["DynamicProto-JS"] = (function () {
'use strict';

@@ -59,2 +59,6 @@

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -122,4 +126,8 @@ * @ignore

// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;

@@ -222,2 +230,3 @@ }

return function () {
// eslint-disable-next-line prefer-rest-params
return theFunc.apply(target, arguments);

@@ -331,2 +340,3 @@ };

var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
// eslint-disable-next-line prefer-rest-params
return instFunc.apply(this, arguments);

@@ -381,4 +391,6 @@ };

}
return false;
}
return false;
// If objGetPrototypeOf doesn't exist then just assume everything is ok.
return true;
}

@@ -508,3 +520,3 @@ /**

}());
})();
//# sourceMappingURL=dynamicproto-js.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.4
* Microsoft Dynamic Proto Utility, 1.1.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
this.Microsoft=this.Microsoft||{},this.Microsoft["DynamicProto-JS"]=function(){"use strict";var i="constructor",h="prototype",p="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",I="_dynCls$",P="_dynInstChk",m=P,w="_dfOpts",r="_unknown_",t="__proto__",O="useBaseInst",C="setInstFuncs",e=Object,F=e.getPrototypeOf,M=0;function k(n,t){return n&&e[h].hasOwnProperty.call(n,t)}function D(n){return n&&(n===e[h]||n===Array[h])}function b(n){return D(n)||n===Function[h]}function B(n){if(n){if(F)return F(n);if(n=n[t]||n[h]||(n[i]?n[i][h]:null))return n}return null}function $(n,t){var r=[],i=e.getOwnPropertyNames;if(i)r=i(n);else for(var o in n)"string"==typeof o&&k(n,o)&&r.push(o);if(r&&0<r.length)for(var u=0;u<r.length;u++)t(r[u])}function j(n,t,r){return t!==i&&typeof n[t]===p&&(r||k(n,t))}function x(n){throw new TypeError("DynamicProto: "+n)}function A(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function E(n,t){return k(n,h)?n.name||t||r:((n||{})[i]||{}).name||t||r}function J(n,i,t,r){k(n,h)||x("theClass is an invalid class definition.");var o=n[h];!function(n){if(F)for(var t=[],r=B(i);r&&!b(r)&&!A(t,r);){if(r===n)return 1;t.push(r),r=B(r)}}(o)&&x("["+E(n)+"] is not in class hierarchy of ["+E(i)+"]");var u=null;k(o,g)?u=o[g]:(u=I+E(n,"_")+"$"+M,M++,o[g]=u);var e=J[w],f=!!e[O];f&&r&&r[O]!==undefined&&(f=!!r[O]);var s,a,c,l,y,v,n=(a={},$(s=i,function(n){!a[n]&&j(s,n,!1)&&(a[n]=s[n])}),a);t(i,function(n,t,r,u){function i(n,t,r){var i,o=t[r];return o[d]&&u&&!1!==(i=n[_]||{})[m]&&(o=(i[t[g]]||{})[r]||o),function(){return o.apply(n,arguments)}}var o={};$(r,function(n){o[n]=i(t,r,n)});for(var e=B(n),f=[];e&&!b(e)&&!A(f,e);)$(e,function(n){!o[n]&&j(e,n,!F)&&(o[n]=i(t,e,n))}),f.push(e),e=B(e);return o}(o,i,n,f)),e=!!F&&!!e[C],c=o,u=u,l=i,y=n,r=!1!==(e=e&&r?!!r[C]:e),D(c)||(e=l[_]=l[_]||{},v=e[u]=e[u]||{},!1!==e[m]&&(e[m]=!!r),$(l,function(n){var r,i,o;j(l,n,!1)&&l[n]!==y[n]&&(v[n]=l[n],delete l[n],k(c,n)&&(!c[n]||c[n][d])||(c[n]=(r=c,i=n,(o=function(){var n,t;return(function(n,t,r,i){var o=null;if(n&&k(r,g)){var u=n[_]||{};if((o=(u[r[g]]||{})[t])||x("Missing ["+t+"] "+p),!o[P]&&!1!==u[m]){for(var e=!k(n,t),f=B(n),s=[];e&&f&&!b(f)&&!A(s,f);){var a=f[t];if(a){e=a===i;break}s.push(f),f=B(f)}try{e&&(n[t]=o),o[P]=1}catch(c){u[m]=!1}}}return o}(this,i,r,o)||(typeof(t=(t=r[n=i])===o?B(r)[n]:t)!==p&&x("["+n+"] is not a "+p),t)).apply(this,arguments)})[d]=1,o)))}))}return J[w]={setInstFuncs:!0,useBaseInst:!0},J}();
this.Microsoft=this.Microsoft||{},this.Microsoft["DynamicProto-JS"]=function(){"use strict";var o="constructor",p="prototype",v="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",P="_dynInstChk",I=P,m="_dfOpts",r="_dynProto",i="_unknown_",u="__proto__",w="useBaseInst",O="setInstFuncs",e=Object,C=e.getPrototypeOf,F=0;function M(n,t){return n&&e[p].hasOwnProperty.call(n,t)}function k(n){return n&&(n===e[p]||n===Array[p])}function D(n){return k(n)||n===Function[p]}function b(n){if(n){if(C)return C(n);var t=n[r]||n[u]||n[p]||(n[o]?n[o][p]:null);if(t)return n[r]||(n[r]=t),t}return null}function B(n,t){var r=[],o=e.getOwnPropertyNames;if(o)r=o(n);else for(var i in n)"string"==typeof i&&M(n,i)&&r.push(i);if(r&&0<r.length)for(var u=0;u<r.length;u++)t(r[u])}function $(n,t,r){return t!==o&&typeof n[t]===v&&(r||M(n,t))}function j(n){throw new TypeError("DynamicProto: "+n)}function x(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function A(n,t){return M(n,p)?n.name||t||i:((n||{})[o]||{}).name||t||i}function E(n,o,t,r){M(n,p)||j("theClass is an invalid class definition.");var i,u,e,f,s,c,a=n[p],l=(function(n){if(!C)return 1;for(var t=[],r=b(o);r&&!D(r)&&!x(t,r);){if(r===n)return 1;t.push(r),r=b(r)}}(a)||j("["+A(n)+"] is not in class hierarchy of ["+A(o)+"]"),null),n=(M(a,g)?l=a[g]:(l="_dynCls$"+A(n,"_")+"$"+F,F++,a[g]=l),E[m]),y=!!n[w],h=(y&&r&&r[w]!==undefined&&(y=!!r[w]),u={},B(i=o,function(n){!u[n]&&$(i,n,!1)&&(u[n]=i[n])}),u),y=(t(o,function(n,t,r,u){function o(n,t,r){var o,i=t[r];return i[d]&&u&&!1!==(o=n[_]||{})[I]&&(i=(o[t[g]]||{})[r]||i),function(){return i.apply(n,arguments)}}for(var i={},e=(B(r,function(n){i[n]=o(t,r,n)}),b(n)),f=[];e&&!D(e)&&!x(f,e);)B(e,function(n){!i[n]&&$(e,n,!C)&&(i[n]=o(t,e,n))}),f.push(e),e=b(e);return i}(a,o,h,y)),!!C&&!!n[O]);e=a,t=l,f=o,s=h,n=!1!==(y=y&&r?!!r[O]:y),k(e)||(a=f[_]=f[_]||{},c=a[t]=a[t]||{},!1!==a[I]&&(a[I]=!!n),B(f,function(n){var r,o,i;$(f,n,!1)&&f[n]!==s[n]&&(c[n]=f[n],delete f[n],M(e,n)&&(!e[n]||e[n][d])||(e[n]=(r=e,o=n,(i=function(){var n,t;return(function(n,t,r,o){var i=null;if(n&&M(r,g)){var u=n[_]||{};if((i=(u[r[g]]||{})[t])||j("Missing ["+t+"] "+v),!i[P]&&!1!==u[I]){for(var e=!M(n,t),f=b(n),s=[];e&&f&&!D(f)&&!x(s,f);){var c=f[t];if(c){e=c===o;break}s.push(f),f=b(f)}try{e&&(n[t]=i),i[P]=1}catch(a){u[I]=!1}}}return i}(this,o,r,i)||(typeof(t=(t=r[n=o])===i?b(r)[n]:t)!==v&&j("["+n+"] is not a "+v),t)).apply(this,arguments)})[d]=1,i)))}))}return E[m]={setInstFuncs:!0,useBaseInst:!0},E}();
//# sourceMappingURL=dynamicproto-js.min.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.4
* Microsoft Dynamic Proto Utility, 1.1.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -8,4 +8,4 @@ */

typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, (global.Microsoft = global.Microsoft || {}, global.Microsoft['DynamicProto-JS'] = factory()));
}(this, (function () { 'use strict';
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, (global.Microsoft = global.Microsoft || {}, global.Microsoft["DynamicProto-JS"] = factory()));
})(this, (function () { 'use strict';

@@ -62,2 +62,6 @@ /**

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -125,4 +129,8 @@ * @ignore

// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;

@@ -225,2 +233,3 @@ }

return function () {
// eslint-disable-next-line prefer-rest-params
return theFunc.apply(target, arguments);

@@ -334,2 +343,3 @@ };

var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
// eslint-disable-next-line prefer-rest-params
return instFunc.apply(this, arguments);

@@ -384,4 +394,6 @@ };

}
return false;
}
return false;
// If objGetPrototypeOf doesn't exist then just assume everything is ok.
return true;
}

@@ -511,3 +523,3 @@ /**

})));
}));
//# sourceMappingURL=dynamicproto-js.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.4
* Microsoft Dynamic Proto Utility, 1.1.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
var n=this,t=function(){"use strict";var e="constructor",v="prototype",d="function",h="_dynInstFuncs",_="_isDynProxy",g="_dynClass",m="_dynCls$",I="_dynInstChk",P=I,b="_dfOpts",r="_unknown_",t="__proto__",w="useBaseInst",O="setInstFuncs",f=Object,C=f.getPrototypeOf,F=0;function M(n,t){return n&&f[v].hasOwnProperty.call(n,t)}function k(n){return n&&(n===f[v]||n===Array[v])}function x(n){return k(n)||n===Function[v]}function D(n){if(n){if(C)return C(n);if(n=n[t]||n[v]||(n[e]?n[e][v]:null))return n}return null}function T(n,t){var r=[],e=f.getOwnPropertyNames;if(e)r=e(n);else for(var o in n)"string"==typeof o&&M(n,o)&&r.push(o);if(r&&0<r.length)for(var i=0;i<r.length;i++)t(r[i])}function j(n,t,r){return t!==e&&typeof n[t]===d&&(r||M(n,t))}function B(n){throw new TypeError("DynamicProto: "+n)}function $(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function A(n,t){return M(n,v)?n.name||t||r:((n||{})[e]||{}).name||t||r}function E(n,e,t,r){M(n,v)||B("theClass is an invalid class definition.");var o=n[v];!function(n){if(C)for(var t=[],r=D(e);r&&!x(r)&&!$(t,r);){if(r===n)return 1;t.push(r),r=D(r)}}(o)&&B("["+A(n)+"] is not in class hierarchy of ["+A(e)+"]");var i=null;M(o,g)?i=o[g]:(i=m+A(n,"_")+"$"+F,F++,o[g]=i);var f=E[b],u=!!f[w];u&&r&&r[w]!==undefined&&(u=!!r[w]);var s,a,c,l,p,y,n=(a={},T(s=e,function(n){!a[n]&&j(s,n,!1)&&(a[n]=s[n])}),a);t(e,function(n,t,r,i){function e(n,t,r){var e,o=t[r];return o[_]&&i&&!1!==(e=n[h]||{})[P]&&(o=(e[t[g]]||{})[r]||o),function(){return o.apply(n,arguments)}}var o={};T(r,function(n){o[n]=e(t,r,n)});for(var f=D(n),u=[];f&&!x(f)&&!$(u,f);)T(f,function(n){!o[n]&&j(f,n,!C)&&(o[n]=e(t,f,n))}),u.push(f),f=D(f);return o}(o,e,n,u)),f=!!C&&!!f[O],c=o,i=i,l=e,p=n,r=!1!==(f=f&&r?!!r[O]:f),k(c)||(f=l[h]=l[h]||{},y=f[i]=f[i]||{},!1!==f[P]&&(f[P]=!!r),T(l,function(n){var r,e,o;j(l,n,!1)&&l[n]!==p[n]&&(y[n]=l[n],delete l[n],M(c,n)&&(!c[n]||c[n][_])||(c[n]=(r=c,e=n,(o=function(){var n,t;return(function(n,t,r,e){var o=null;if(n&&M(r,g)){var i=n[h]||{};if((o=(i[r[g]]||{})[t])||B("Missing ["+t+"] "+d),!o[I]&&!1!==i[P]){for(var f=!M(n,t),u=D(n),s=[];f&&u&&!x(u)&&!$(s,u);){var a=u[t];if(a){f=a===e;break}s.push(u),u=D(u)}try{f&&(n[t]=o),o[I]=1}catch(c){i[P]=!1}}}return o}(this,e,r,o)||(typeof(t=(t=r[n=e])===o?D(r)[n]:t)!==d&&B("["+n+"] is not a "+d),t)).apply(this,arguments)})[_]=1,o)))}))}return E[b]={setInstFuncs:!0,useBaseInst:!0},E};"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((n="undefined"!=typeof globalThis?globalThis:n||self).Microsoft=n.Microsoft||{},n.Microsoft["DynamicProto-JS"]=t());
var n=this,t=function(){"use strict";var o="constructor",d="prototype",h="function",v="_dynInstFuncs",_="_isDynProxy",g="_dynClass",m="_dynInstChk",P=m,I="_dfOpts",r="_dynProto",e="_unknown_",i="__proto__",b="useBaseInst",w="setInstFuncs",u=Object,O=u.getPrototypeOf,C=0;function F(n,t){return n&&u[d].hasOwnProperty.call(n,t)}function M(n){return n&&(n===u[d]||n===Array[d])}function k(n){return M(n)||n===Function[d]}function x(n){if(n){if(O)return O(n);var t=n[r]||n[i]||n[d]||(n[o]?n[o][d]:null);if(t)return n[r]||(n[r]=t),t}return null}function D(n,t){var r=[],o=u.getOwnPropertyNames;if(o)r=o(n);else for(var e in n)"string"==typeof e&&F(n,e)&&r.push(e);if(r&&0<r.length)for(var i=0;i<r.length;i++)t(r[i])}function T(n,t,r){return t!==o&&typeof n[t]===h&&(r||F(n,t))}function j(n){throw new TypeError("DynamicProto: "+n)}function B(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function $(n,t){return F(n,d)?n.name||t||e:((n||{})[o]||{}).name||t||e}function A(n,o,t,r){F(n,d)||j("theClass is an invalid class definition.");var e,i,u,f,s,c,a=n[d],l=(function(n){if(!O)return 1;for(var t=[],r=x(o);r&&!k(r)&&!B(t,r);){if(r===n)return 1;t.push(r),r=x(r)}}(a)||j("["+$(n)+"] is not in class hierarchy of ["+$(o)+"]"),null),n=(F(a,g)?l=a[g]:(l="_dynCls$"+$(n,"_")+"$"+C,C++,a[g]=l),A[I]),y=!!n[b],p=(y&&r&&r[b]!==undefined&&(y=!!r[b]),i={},D(e=o,function(n){!i[n]&&T(e,n,!1)&&(i[n]=e[n])}),i),y=(t(o,function(n,t,r,i){function o(n,t,r){var o,e=t[r];return e[_]&&i&&!1!==(o=n[v]||{})[P]&&(e=(o[t[g]]||{})[r]||e),function(){return e.apply(n,arguments)}}for(var e={},u=(D(r,function(n){e[n]=o(t,r,n)}),x(n)),f=[];u&&!k(u)&&!B(f,u);)D(u,function(n){!e[n]&&T(u,n,!O)&&(e[n]=o(t,u,n))}),f.push(u),u=x(u);return e}(a,o,p,y)),!!O&&!!n[w]);u=a,t=l,f=o,s=p,n=!1!==(y=y&&r?!!r[w]:y),M(u)||(a=f[v]=f[v]||{},c=a[t]=a[t]||{},!1!==a[P]&&(a[P]=!!n),D(f,function(n){var r,o,e;T(f,n,!1)&&f[n]!==s[n]&&(c[n]=f[n],delete f[n],F(u,n)&&(!u[n]||u[n][_])||(u[n]=(r=u,o=n,(e=function(){var n,t;return(function(n,t,r,o){var e=null;if(n&&F(r,g)){var i=n[v]||{};if((e=(i[r[g]]||{})[t])||j("Missing ["+t+"] "+h),!e[m]&&!1!==i[P]){for(var u=!F(n,t),f=x(n),s=[];u&&f&&!k(f)&&!B(s,f);){var c=f[t];if(c){u=c===o;break}s.push(f),f=x(f)}try{u&&(n[t]=e),e[m]=1}catch(a){i[P]=!1}}}return e}(this,o,r,e)||(typeof(t=(t=r[n=o])===e?x(r)[n]:t)!==h&&j("["+n+"] is not a "+h),t)).apply(this,arguments)})[_]=1,e)))}))}return A[I]={setInstFuncs:!0,useBaseInst:!0},A};"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((n="undefined"!=typeof globalThis?globalThis:n||self).Microsoft=n.Microsoft||{},n.Microsoft["DynamicProto-JS"]=t());
//# sourceMappingURL=dynamicproto-js.min.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.4
* Microsoft Dynamic Proto Utility, 1.1.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
System.register('Microsoft.DynamicProto-JS', [], function (exports) {
System.register('Microsoft.DynamicProto-JS', [], (function (exports) {
'use strict';
return {
execute: function () {
execute: (function () {

@@ -62,2 +62,6 @@ exports('default', dynamicProto);

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -125,4 +129,8 @@ * @ignore

// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;

@@ -225,2 +233,3 @@ }

return function () {
// eslint-disable-next-line prefer-rest-params
return theFunc.apply(target, arguments);

@@ -334,2 +343,3 @@ };

var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
// eslint-disable-next-line prefer-rest-params
return instFunc.apply(this, arguments);

@@ -384,4 +394,6 @@ };

}
return false;
}
return false;
// If objGetPrototypeOf doesn't exist then just assume everything is ok.
return true;
}

@@ -509,5 +521,5 @@ /**

}
})
};
});
}));
//# sourceMappingURL=dynamicproto-js.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.4
* Microsoft Dynamic Proto Utility, 1.1.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
System.register("Microsoft.DynamicProto-JS",[],function(n){"use strict";return{execute:function(){n("default",E);var e="constructor",p="prototype",h="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",m="_dynCls$",I="_dynInstChk",P=I,w="_dfOpts",r="_unknown_",t="__proto__",O="useBaseInst",C="setInstFuncs",o=Object,F=o.getPrototypeOf,k=0;function D(n,t){return n&&o[p].hasOwnProperty.call(n,t)}function b(n){return n&&(n===o[p]||n===Array[p])}function x(n){return b(n)||n===Function[p]}function B(n){if(n){if(F)return F(n);if(n=n[t]||n[p]||(n[e]?n[e][p]:null))return n}return null}function M(n,t){var r=[],e=o.getOwnPropertyNames;if(e)r=e(n);else for(var u in n)"string"==typeof u&&D(n,u)&&r.push(u);if(r&&0<r.length)for(var i=0;i<r.length;i++)t(r[i])}function S(n,t,r){return t!==e&&typeof n[t]===h&&(r||D(n,t))}function $(n){throw new TypeError("DynamicProto: "+n)}function j(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function A(n,t){return D(n,p)?n.name||t||r:((n||{})[e]||{}).name||t||r}function E(n,e,t,r){D(n,p)||$("theClass is an invalid class definition.");var u=n[p];!function(n){if(F)for(var t=[],r=B(e);r&&!x(r)&&!j(t,r);){if(r===n)return 1;t.push(r),r=B(r)}}(u)&&$("["+A(n)+"] is not in class hierarchy of ["+A(e)+"]");var i=null;D(u,g)?i=u[g]:(i=m+A(n,"_")+"$"+k,k++,u[g]=i);var o=E[w],f=!!o[O];f&&r&&r[O]!==undefined&&(f=!!r[O]);var s,a,c,l,y,v,n=(a={},M(s=e,function(n){!a[n]&&S(s,n,!1)&&(a[n]=s[n])}),a);t(e,function(n,t,r,i){function e(n,t,r){var e,u=t[r];return u[d]&&i&&!1!==(e=n[_]||{})[P]&&(u=(e[t[g]]||{})[r]||u),function(){return u.apply(n,arguments)}}var u={};M(r,function(n){u[n]=e(t,r,n)});for(var o=B(n),f=[];o&&!x(o)&&!j(f,o);)M(o,function(n){!u[n]&&S(o,n,!F)&&(u[n]=e(t,o,n))}),f.push(o),o=B(o);return u}(u,e,n,f)),o=!!F&&!!o[C],c=u,i=i,l=e,y=n,r=!1!==(o=o&&r?!!r[C]:o),b(c)||(o=l[_]=l[_]||{},v=o[i]=o[i]||{},!1!==o[P]&&(o[P]=!!r),M(l,function(n){var r,e,u;S(l,n,!1)&&l[n]!==y[n]&&(v[n]=l[n],delete l[n],D(c,n)&&(!c[n]||c[n][d])||(c[n]=(r=c,e=n,(u=function(){var n,t;return(function(n,t,r,e){var u=null;if(n&&D(r,g)){var i=n[_]||{};if((u=(i[r[g]]||{})[t])||$("Missing ["+t+"] "+h),!u[I]&&!1!==i[P]){for(var o=!D(n,t),f=B(n),s=[];o&&f&&!x(f)&&!j(s,f);){var a=f[t];if(a){o=a===e;break}s.push(f),f=B(f)}try{o&&(n[t]=u),u[I]=1}catch(c){i[P]=!1}}}return u}(this,e,r,u)||(typeof(t=(t=r[n=e])===u?B(r)[n]:t)!==h&&$("["+n+"] is not a "+h),t)).apply(this,arguments)})[d]=1,u)))}))}E[w]={setInstFuncs:!0,useBaseInst:!0}}}});
System.register("Microsoft.DynamicProto-JS",[],function(n){"use strict";return{execute:function(){n("default",E);var e="constructor",v="prototype",h="function",_="_dynInstFuncs",d="_isDynProxy",g="_dynClass",P="_dynCls$",m="_dynInstChk",I=m,w="_dfOpts",r="_dynProto",u="_unknown_",o="__proto__",O="useBaseInst",C="setInstFuncs",i=Object,F=i.getPrototypeOf,k=0;function D(n,t){return n&&i[v].hasOwnProperty.call(n,t)}function b(n){return n&&(n===i[v]||n===Array[v])}function x(n){return b(n)||n===Function[v]}function B(n){if(n){if(F)return F(n);var t=n[r]||n[o]||n[v]||(n[e]?n[e][v]:null);if(t)return n[r]||(n[r]=t),t}return null}function M(n,t){var r=[],e=i.getOwnPropertyNames;if(e)r=e(n);else for(var u in n)"string"==typeof u&&D(n,u)&&r.push(u);if(r&&0<r.length)for(var o=0;o<r.length;o++)t(r[o])}function S(n,t,r){return t!==e&&typeof n[t]===h&&(r||D(n,t))}function $(n){throw new TypeError("DynamicProto: "+n)}function j(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function A(n,t){return D(n,v)?n.name||t||u:((n||{})[e]||{}).name||t||u}function E(n,e,t,r){D(n,v)||$("theClass is an invalid class definition.");var u,o,i,f,s,c,a=n[v],l=(function(n){if(!F)return 1;for(var t=[],r=B(e);r&&!x(r)&&!j(t,r);){if(r===n)return 1;t.push(r),r=B(r)}}(a)||$("["+A(n)+"] is not in class hierarchy of ["+A(e)+"]"),null),n=(D(a,g)?l=a[g]:(l=P+A(n,"_")+"$"+k,k++,a[g]=l),E[w]),y=!!n[O],p=(y&&r&&r[O]!==undefined&&(y=!!r[O]),o={},M(u=e,function(n){!o[n]&&S(u,n,!1)&&(o[n]=u[n])}),o),y=(t(e,function(n,t,r,o){function e(n,t,r){var e,u=t[r];return u[d]&&o&&!1!==(e=n[_]||{})[I]&&(u=(e[t[g]]||{})[r]||u),function(){return u.apply(n,arguments)}}for(var u={},i=(M(r,function(n){u[n]=e(t,r,n)}),B(n)),f=[];i&&!x(i)&&!j(f,i);)M(i,function(n){!u[n]&&S(i,n,!F)&&(u[n]=e(t,i,n))}),f.push(i),i=B(i);return u}(a,e,p,y)),!!F&&!!n[C]);i=a,t=l,f=e,s=p,n=!1!==(y=y&&r?!!r[C]:y),b(i)||(a=f[_]=f[_]||{},c=a[t]=a[t]||{},!1!==a[I]&&(a[I]=!!n),M(f,function(n){var r,e,u;S(f,n,!1)&&f[n]!==s[n]&&(c[n]=f[n],delete f[n],D(i,n)&&(!i[n]||i[n][d])||(i[n]=(r=i,e=n,(u=function(){var n,t;return(function(n,t,r,e){var u=null;if(n&&D(r,g)){var o=n[_]||{};if((u=(o[r[g]]||{})[t])||$("Missing ["+t+"] "+h),!u[m]&&!1!==o[I]){for(var i=!D(n,t),f=B(n),s=[];i&&f&&!x(f)&&!j(s,f);){var c=f[t];if(c){i=c===e;break}s.push(f),f=B(f)}try{i&&(n[t]=u),u[m]=1}catch(a){o[I]=!1}}}return u}(this,e,r,u)||(typeof(t=(t=r[n=e])===u?B(r)[n]:t)!==h&&$("["+n+"] is not a "+h),t)).apply(this,arguments)})[d]=1,u)))}))}E[w]={setInstFuncs:!0,useBaseInst:!0}}}});
//# sourceMappingURL=dynamicproto-js.min.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.4
* Microsoft Dynamic Proto Utility, 1.1.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -8,4 +8,4 @@ */

typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, (global.Microsoft = global.Microsoft || {}, global.Microsoft['DynamicProto-JS'] = factory()));
}(this, (function () { 'use strict';
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, (global.Microsoft = global.Microsoft || {}, global.Microsoft["DynamicProto-JS"] = factory()));
})(this, (function () { 'use strict';

@@ -62,2 +62,6 @@ /**

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
var DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -125,4 +129,8 @@ * @ignore

// target[Constructor] May break if the constructor has been changed or removed
var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if (newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;

@@ -225,2 +233,3 @@ }

return function () {
// eslint-disable-next-line prefer-rest-params
return theFunc.apply(target, arguments);

@@ -334,2 +343,3 @@ };

var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
// eslint-disable-next-line prefer-rest-params
return instFunc.apply(this, arguments);

@@ -384,4 +394,6 @@ };

}
return false;
}
return false;
// If objGetPrototypeOf doesn't exist then just assume everything is ok.
return true;
}

@@ -511,3 +523,3 @@ /**

})));
}));
//# sourceMappingURL=dynamicproto-js.js.map
/*!
* Microsoft Dynamic Proto Utility, 1.1.4
* Microsoft Dynamic Proto Utility, 1.1.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
var n=this,t=function(){"use strict";var e="constructor",v="prototype",d="function",h="_dynInstFuncs",_="_isDynProxy",g="_dynClass",m="_dynCls$",I="_dynInstChk",P=I,b="_dfOpts",r="_unknown_",t="__proto__",w="useBaseInst",O="setInstFuncs",f=Object,C=f.getPrototypeOf,F=0;function M(n,t){return n&&f[v].hasOwnProperty.call(n,t)}function k(n){return n&&(n===f[v]||n===Array[v])}function x(n){return k(n)||n===Function[v]}function D(n){if(n){if(C)return C(n);if(n=n[t]||n[v]||(n[e]?n[e][v]:null))return n}return null}function T(n,t){var r=[],e=f.getOwnPropertyNames;if(e)r=e(n);else for(var o in n)"string"==typeof o&&M(n,o)&&r.push(o);if(r&&0<r.length)for(var i=0;i<r.length;i++)t(r[i])}function j(n,t,r){return t!==e&&typeof n[t]===d&&(r||M(n,t))}function B(n){throw new TypeError("DynamicProto: "+n)}function $(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function A(n,t){return M(n,v)?n.name||t||r:((n||{})[e]||{}).name||t||r}function E(n,e,t,r){M(n,v)||B("theClass is an invalid class definition.");var o=n[v];!function(n){if(C)for(var t=[],r=D(e);r&&!x(r)&&!$(t,r);){if(r===n)return 1;t.push(r),r=D(r)}}(o)&&B("["+A(n)+"] is not in class hierarchy of ["+A(e)+"]");var i=null;M(o,g)?i=o[g]:(i=m+A(n,"_")+"$"+F,F++,o[g]=i);var f=E[b],u=!!f[w];u&&r&&r[w]!==undefined&&(u=!!r[w]);var s,a,c,l,p,y,n=(a={},T(s=e,function(n){!a[n]&&j(s,n,!1)&&(a[n]=s[n])}),a);t(e,function(n,t,r,i){function e(n,t,r){var e,o=t[r];return o[_]&&i&&!1!==(e=n[h]||{})[P]&&(o=(e[t[g]]||{})[r]||o),function(){return o.apply(n,arguments)}}var o={};T(r,function(n){o[n]=e(t,r,n)});for(var f=D(n),u=[];f&&!x(f)&&!$(u,f);)T(f,function(n){!o[n]&&j(f,n,!C)&&(o[n]=e(t,f,n))}),u.push(f),f=D(f);return o}(o,e,n,u)),f=!!C&&!!f[O],c=o,i=i,l=e,p=n,r=!1!==(f=f&&r?!!r[O]:f),k(c)||(f=l[h]=l[h]||{},y=f[i]=f[i]||{},!1!==f[P]&&(f[P]=!!r),T(l,function(n){var r,e,o;j(l,n,!1)&&l[n]!==p[n]&&(y[n]=l[n],delete l[n],M(c,n)&&(!c[n]||c[n][_])||(c[n]=(r=c,e=n,(o=function(){var n,t;return(function(n,t,r,e){var o=null;if(n&&M(r,g)){var i=n[h]||{};if((o=(i[r[g]]||{})[t])||B("Missing ["+t+"] "+d),!o[I]&&!1!==i[P]){for(var f=!M(n,t),u=D(n),s=[];f&&u&&!x(u)&&!$(s,u);){var a=u[t];if(a){f=a===e;break}s.push(u),u=D(u)}try{f&&(n[t]=o),o[I]=1}catch(c){i[P]=!1}}}return o}(this,e,r,o)||(typeof(t=(t=r[n=e])===o?D(r)[n]:t)!==d&&B("["+n+"] is not a "+d),t)).apply(this,arguments)})[_]=1,o)))}))}return E[b]={setInstFuncs:!0,useBaseInst:!0},E};"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((n="undefined"!=typeof globalThis?globalThis:n||self).Microsoft=n.Microsoft||{},n.Microsoft["DynamicProto-JS"]=t());
var n=this,t=function(){"use strict";var o="constructor",d="prototype",h="function",v="_dynInstFuncs",_="_isDynProxy",g="_dynClass",m="_dynInstChk",P=m,I="_dfOpts",r="_dynProto",e="_unknown_",i="__proto__",b="useBaseInst",w="setInstFuncs",u=Object,O=u.getPrototypeOf,C=0;function F(n,t){return n&&u[d].hasOwnProperty.call(n,t)}function M(n){return n&&(n===u[d]||n===Array[d])}function k(n){return M(n)||n===Function[d]}function x(n){if(n){if(O)return O(n);var t=n[r]||n[i]||n[d]||(n[o]?n[o][d]:null);if(t)return n[r]||(n[r]=t),t}return null}function D(n,t){var r=[],o=u.getOwnPropertyNames;if(o)r=o(n);else for(var e in n)"string"==typeof e&&F(n,e)&&r.push(e);if(r&&0<r.length)for(var i=0;i<r.length;i++)t(r[i])}function T(n,t,r){return t!==o&&typeof n[t]===h&&(r||F(n,t))}function j(n){throw new TypeError("DynamicProto: "+n)}function B(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function $(n,t){return F(n,d)?n.name||t||e:((n||{})[o]||{}).name||t||e}function A(n,o,t,r){F(n,d)||j("theClass is an invalid class definition.");var e,i,u,f,s,c,a=n[d],l=(function(n){if(!O)return 1;for(var t=[],r=x(o);r&&!k(r)&&!B(t,r);){if(r===n)return 1;t.push(r),r=x(r)}}(a)||j("["+$(n)+"] is not in class hierarchy of ["+$(o)+"]"),null),n=(F(a,g)?l=a[g]:(l="_dynCls$"+$(n,"_")+"$"+C,C++,a[g]=l),A[I]),y=!!n[b],p=(y&&r&&r[b]!==undefined&&(y=!!r[b]),i={},D(e=o,function(n){!i[n]&&T(e,n,!1)&&(i[n]=e[n])}),i),y=(t(o,function(n,t,r,i){function o(n,t,r){var o,e=t[r];return e[_]&&i&&!1!==(o=n[v]||{})[P]&&(e=(o[t[g]]||{})[r]||e),function(){return e.apply(n,arguments)}}for(var e={},u=(D(r,function(n){e[n]=o(t,r,n)}),x(n)),f=[];u&&!k(u)&&!B(f,u);)D(u,function(n){!e[n]&&T(u,n,!O)&&(e[n]=o(t,u,n))}),f.push(u),u=x(u);return e}(a,o,p,y)),!!O&&!!n[w]);u=a,t=l,f=o,s=p,n=!1!==(y=y&&r?!!r[w]:y),M(u)||(a=f[v]=f[v]||{},c=a[t]=a[t]||{},!1!==a[P]&&(a[P]=!!n),D(f,function(n){var r,o,e;T(f,n,!1)&&f[n]!==s[n]&&(c[n]=f[n],delete f[n],F(u,n)&&(!u[n]||u[n][_])||(u[n]=(r=u,o=n,(e=function(){var n,t;return(function(n,t,r,o){var e=null;if(n&&F(r,g)){var i=n[v]||{};if((e=(i[r[g]]||{})[t])||j("Missing ["+t+"] "+h),!e[m]&&!1!==i[P]){for(var u=!F(n,t),f=x(n),s=[];u&&f&&!k(f)&&!B(s,f);){var c=f[t];if(c){u=c===o;break}s.push(f),f=x(f)}try{u&&(n[t]=e),e[m]=1}catch(a){i[P]=!1}}}return e}(this,o,r,e)||(typeof(t=(t=r[n=o])===e?x(r)[n]:t)!==h&&j("["+n+"] is not a "+h),t)).apply(this,arguments)})[_]=1,e)))}))}return A[I]={setInstFuncs:!0,useBaseInst:!0},A};"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((n="undefined"!=typeof globalThis?globalThis:n||self).Microsoft=n.Microsoft||{},n.Microsoft["DynamicProto-JS"]=t());
//# sourceMappingURL=dynamicproto-js.min.js.map

@@ -64,2 +64,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

/**
* The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist
*/
const DynProtoPolyProto = "_dynProto";
/**
* Value used as the name of a class when it cannot be determined

@@ -139,4 +144,9 @@ * @ignore

// target[Constructor] May break if the constructor has been changed or removed
let newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
let newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
if(newProto) {
// Set the _dynProto so the hierarchy can lookup base classes correctly on IE8
if (!target[DynProtoPolyProto]) {
target[DynProtoPolyProto] = newProto;
}
return newProto;

@@ -250,2 +260,3 @@ }

return function() {
// eslint-disable-next-line prefer-rest-params
return theFunc.apply(target, arguments);

@@ -376,5 +387,6 @@ };

function _createDynamicPrototype(proto:any, funcName:string) {
var dynProtoProxy = function() {
let dynProtoProxy = function() {
// Use the instance or prototype function
let instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
// eslint-disable-next-line prefer-rest-params
return instFunc.apply(this, arguments);

@@ -436,5 +448,8 @@ };

}
return false;
}
return false;
// If objGetPrototypeOf doesn't exist then just assume everything is ok.
return true;
}

@@ -538,3 +553,3 @@

*/
export default function dynamicProto<DPType, DPCls>(theClass:DPCls, target:DPType, delegateFunc: DynamicProtoDelegate<DPType>, options?:IDynamicProtoOpts) {
export default function dynamicProto<DPType, DPCls>(theClass:DPCls, target:DPType, delegateFunc: DynamicProtoDelegate<DPType>, options?:IDynamicProtoOpts): void {
// Make sure that the passed theClass argument looks correct

@@ -541,0 +556,0 @@ if (!_hasOwnProperty(theClass, Prototype)) {

@@ -13,3 +13,4 @@ {

},
"files": []
}
"files": [
]
}
{
"name": "@microsoft/dynamicproto-js",
"description": "Microsoft Dynamic Proto Utility",
"version": "1.1.4",
"version": "1.1.5",
"keywords": [

@@ -21,7 +21,10 @@ "javascript",

"scripts": {
"ci-install": "node common/scripts/install-run-rush.js update",
"ci-install": "node common/scripts/install-run-rush.js check && node common/scripts/install-run-rush.js update",
"build": "node common/scripts/install-run-rush.js rebuild",
"test": "grunt dynamicprototest",
"rollup": "grunt rollup",
"docs": "typedoc --out docs lib/src --excludePrivate --excludeProtected --tsconfig lib/tsconfig.json --theme minimal"
"rupdate": "node common/scripts/install-run-rush.js update --recheck --purge --full",
"docs": "typedoc --out docs lib/src --excludePrivate --excludeProtected --tsconfig lib/tsconfig.json --theme minimal",
"fullClean": "git clean -xdf && npm install && rush update --recheck --purge --full",
"fullCleanBuild": "npm run fullClean && npm run build"
},

@@ -41,9 +44,18 @@ "repository": {

"devDependencies": {
"grunt": "^1.4.1",
"grunt-cli": "^1.3.2",
"@microsoft/rush": "^5.67.0",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-eslint-ts": "^0.1.0",
"@typescript-eslint/eslint-plugin": "^4.28.0",
"@typescript-eslint/parser": "^4.28.0",
"eslint": "^7.29.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-security": "^1.4.0",
"grunt": "^1.5.2",
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^4.0.0",
"grunt-contrib-uglify": "^5.0.1",
"grunt-run": "^0.8.1",
"grunt-ts": "^6.0.0-beta.22",
"grunt-tslint": "^5.0.2",
"@rollup/plugin-node-resolve": "^9.0.0",

@@ -53,8 +65,5 @@ "@rollup/plugin-replace": "^2.3.3",

"rollup": "^2.32.0",
"tslint": "^5.19.0",
"tslint-config-prettier": "^1.18.0",
"tslint-microsoft-contrib": "^6.2.0",
"typedoc": "^0.20.36",
"typescript": "^3.7.2"
"typedoc": "^0.22.8",
"typescript": "^4.5.0"
}
}
# Releases
## 1.1.5 (Apr 28th, 2022)
- #47 [IE8] The _checkPrototype always fails on IE in IE8 mode
## 1.1.4 (Jun 3rd, 2021)

@@ -4,0 +8,0 @@

@@ -88,3 +88,3 @@ /*!

previous: { writable: true, value: null },
next: { writable: true, value: null }
next: { writable: true, value: null },
});

@@ -199,3 +199,2 @@ };

return true;
} else {

@@ -221,3 +220,2 @@ this.edit('', undefined, true);

return true;
} else {

@@ -407,3 +405,3 @@ this.edit('', undefined, true);

insertRight: false,
storeName: false
storeName: false,
};

@@ -417,15 +415,15 @@

Object.defineProperties(this, {
original: { writable: true, value: string },
outro: { writable: true, value: '' },
intro: { writable: true, value: '' },
firstChunk: { writable: true, value: chunk },
lastChunk: { writable: true, value: chunk },
lastSearchedChunk: { writable: true, value: chunk },
byStart: { writable: true, value: {} },
byEnd: { writable: true, value: {} },
filename: { writable: true, value: options.filename },
original: { writable: true, value: string },
outro: { writable: true, value: '' },
intro: { writable: true, value: '' },
firstChunk: { writable: true, value: chunk },
lastChunk: { writable: true, value: chunk },
lastSearchedChunk: { writable: true, value: chunk },
byStart: { writable: true, value: {} },
byEnd: { writable: true, value: {} },
filename: { writable: true, value: options.filename },
indentExclusionRanges: { writable: true, value: options.indentExclusionRanges },
sourcemapLocations: { writable: true, value: new BitSet() },
storedNames: { writable: true, value: {} },
indentStr: { writable: true, value: guessIndent(string) }
sourcemapLocations: { writable: true, value: new BitSet() },
storedNames: { writable: true, value: {} },
indentStr: { writable: true, value: guessIndent(string) },
});

@@ -554,3 +552,3 @@

names: names,
mappings: mappings.raw
mappings: mappings.raw,
};

@@ -653,3 +651,5 @@ };

MagicString.prototype.insert = function insert () {
throw new Error('magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)');
throw new Error(
'magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)'
);
};

@@ -659,3 +659,5 @@

if (!warned.insertLeft) {
console.warn('magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead'); // eslint-disable-line no-console
console.warn(
'magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead'
); // eslint-disable-line no-console
warned.insertLeft = true;

@@ -669,3 +671,5 @@ }

if (!warned.insertRight) {
console.warn('magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead'); // eslint-disable-line no-console
console.warn(
'magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead'
); // eslint-disable-line no-console
warned.insertRight = true;

@@ -722,3 +726,5 @@ }

if (start === end)
{ throw new Error('Cannot overwrite a zero-length range – use appendLeft or prependRight instead'); }
{ throw new Error(
'Cannot overwrite a zero-length range – use appendLeft or prependRight instead'
); }

@@ -730,3 +736,5 @@ this._split(start);

if (!warned.storeName) {
console.warn('The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string'); // eslint-disable-line no-console
console.warn(
'The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string'
); // eslint-disable-line no-console
warned.storeName = true;

@@ -742,3 +750,3 @@ }

var original = this.original.slice(start, end);
this.storedNames[original] = true;
Object.defineProperty(this.storedNames, original, { writable: true, value: true, enumerable: true });
}

@@ -750,17 +758,12 @@

if (first) {
if (end > first.end && first.next !== this.byStart[first.end]) {
throw new Error('Cannot overwrite across a split point');
var chunk = first;
while (chunk !== last) {
if (chunk.next !== this.byStart[chunk.end]) {
throw new Error('Cannot overwrite across a split point');
}
chunk = chunk.next;
chunk.edit('', false);
}
first.edit(content, storeName, contentOnly);
if (first !== last) {
var chunk = first.next;
while (chunk !== last) {
chunk.edit('', false);
chunk = chunk.next;
}
chunk.edit('', false);
}
} else {

@@ -839,15 +842,10 @@ // must be inserting at the end

MagicString.prototype.lastChar = function lastChar () {
if (this.outro.length)
{ return this.outro[this.outro.length - 1]; }
if (this.outro.length) { return this.outro[this.outro.length - 1]; }
var chunk = this.lastChunk;
do {
if (chunk.outro.length)
{ return chunk.outro[chunk.outro.length - 1]; }
if (chunk.content.length)
{ return chunk.content[chunk.content.length - 1]; }
if (chunk.intro.length)
{ return chunk.intro[chunk.intro.length - 1]; }
} while (chunk = chunk.previous);
if (this.intro.length)
{ return this.intro[this.intro.length - 1]; }
if (chunk.outro.length) { return chunk.outro[chunk.outro.length - 1]; }
if (chunk.content.length) { return chunk.content[chunk.content.length - 1]; }
if (chunk.intro.length) { return chunk.intro[chunk.intro.length - 1]; }
} while ((chunk = chunk.previous));
if (this.intro.length) { return this.intro[this.intro.length - 1]; }
return '';

@@ -858,4 +856,3 @@ };

var lineIndex = this.outro.lastIndexOf(n);
if (lineIndex !== -1)
{ return this.outro.substr(lineIndex + 1); }
if (lineIndex !== -1) { return this.outro.substr(lineIndex + 1); }
var lineStr = this.outro;

@@ -866,4 +863,3 @@ var chunk = this.lastChunk;

lineIndex = chunk.outro.lastIndexOf(n);
if (lineIndex !== -1)
{ return chunk.outro.substr(lineIndex + 1) + lineStr; }
if (lineIndex !== -1) { return chunk.outro.substr(lineIndex + 1) + lineStr; }
lineStr = chunk.outro + lineStr;

@@ -874,4 +870,3 @@ }

lineIndex = chunk.content.lastIndexOf(n);
if (lineIndex !== -1)
{ return chunk.content.substr(lineIndex + 1) + lineStr; }
if (lineIndex !== -1) { return chunk.content.substr(lineIndex + 1) + lineStr; }
lineStr = chunk.content + lineStr;

@@ -882,10 +877,8 @@ }

lineIndex = chunk.intro.lastIndexOf(n);
if (lineIndex !== -1)
{ return chunk.intro.substr(lineIndex + 1) + lineStr; }
if (lineIndex !== -1) { return chunk.intro.substr(lineIndex + 1) + lineStr; }
lineStr = chunk.intro + lineStr;
}
} while (chunk = chunk.previous);
} while ((chunk = chunk.previous));
lineIndex = this.intro.lastIndexOf(n);
if (lineIndex !== -1)
{ return this.intro.substr(lineIndex + 1) + lineStr; }
if (lineIndex !== -1) { return this.intro.substr(lineIndex + 1) + lineStr; }
return this.intro + lineStr;

@@ -1004,7 +997,9 @@ };

do {
if (chunk.intro.length && chunk.intro.trim() ||
chunk.content.length && chunk.content.trim() ||
chunk.outro.length && chunk.outro.trim())
if (
(chunk.intro.length && chunk.intro.trim()) ||
(chunk.content.length && chunk.content.trim()) ||
(chunk.outro.length && chunk.outro.trim())
)
{ return false; }
} while (chunk = chunk.next);
} while ((chunk = chunk.next));
return true;

@@ -1018,3 +1013,3 @@ };

length += chunk.intro.length + chunk.content.length + chunk.outro.length;
} while (chunk = chunk.next);
} while ((chunk = chunk.next));
return length;

@@ -1269,2 +1264,2 @@ };

export default dynamicRemove;
export { dynamicRemove as default };

@@ -8,4 +8,4 @@ /*!

typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, (global.Microsoft = global.Microsoft || {}, global.Microsoft['DynamicProto-Rollup'] = factory()));
}(this, (function () { 'use strict';
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, (global.Microsoft = global.Microsoft || {}, global.Microsoft["DynamicProto-Rollup"] = factory()));
})(this, (function () { 'use strict';

@@ -95,3 +95,3 @@ var charToInteger = {};

previous: { writable: true, value: null },
next: { writable: true, value: null }
next: { writable: true, value: null },
});

@@ -206,3 +206,2 @@ };

return true;
} else {

@@ -228,3 +227,2 @@ this.edit('', undefined, true);

return true;
} else {

@@ -414,3 +412,3 @@ this.edit('', undefined, true);

insertRight: false,
storeName: false
storeName: false,
};

@@ -424,15 +422,15 @@

Object.defineProperties(this, {
original: { writable: true, value: string },
outro: { writable: true, value: '' },
intro: { writable: true, value: '' },
firstChunk: { writable: true, value: chunk },
lastChunk: { writable: true, value: chunk },
lastSearchedChunk: { writable: true, value: chunk },
byStart: { writable: true, value: {} },
byEnd: { writable: true, value: {} },
filename: { writable: true, value: options.filename },
original: { writable: true, value: string },
outro: { writable: true, value: '' },
intro: { writable: true, value: '' },
firstChunk: { writable: true, value: chunk },
lastChunk: { writable: true, value: chunk },
lastSearchedChunk: { writable: true, value: chunk },
byStart: { writable: true, value: {} },
byEnd: { writable: true, value: {} },
filename: { writable: true, value: options.filename },
indentExclusionRanges: { writable: true, value: options.indentExclusionRanges },
sourcemapLocations: { writable: true, value: new BitSet() },
storedNames: { writable: true, value: {} },
indentStr: { writable: true, value: guessIndent(string) }
sourcemapLocations: { writable: true, value: new BitSet() },
storedNames: { writable: true, value: {} },
indentStr: { writable: true, value: guessIndent(string) },
});

@@ -561,3 +559,3 @@

names: names,
mappings: mappings.raw
mappings: mappings.raw,
};

@@ -660,3 +658,5 @@ };

MagicString.prototype.insert = function insert () {
throw new Error('magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)');
throw new Error(
'magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)'
);
};

@@ -666,3 +666,5 @@

if (!warned.insertLeft) {
console.warn('magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead'); // eslint-disable-line no-console
console.warn(
'magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead'
); // eslint-disable-line no-console
warned.insertLeft = true;

@@ -676,3 +678,5 @@ }

if (!warned.insertRight) {
console.warn('magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead'); // eslint-disable-line no-console
console.warn(
'magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead'
); // eslint-disable-line no-console
warned.insertRight = true;

@@ -729,3 +733,5 @@ }

if (start === end)
{ throw new Error('Cannot overwrite a zero-length range – use appendLeft or prependRight instead'); }
{ throw new Error(
'Cannot overwrite a zero-length range – use appendLeft or prependRight instead'
); }

@@ -737,3 +743,5 @@ this._split(start);

if (!warned.storeName) {
console.warn('The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string'); // eslint-disable-line no-console
console.warn(
'The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string'
); // eslint-disable-line no-console
warned.storeName = true;

@@ -749,3 +757,3 @@ }

var original = this.original.slice(start, end);
this.storedNames[original] = true;
Object.defineProperty(this.storedNames, original, { writable: true, value: true, enumerable: true });
}

@@ -757,17 +765,12 @@

if (first) {
if (end > first.end && first.next !== this.byStart[first.end]) {
throw new Error('Cannot overwrite across a split point');
var chunk = first;
while (chunk !== last) {
if (chunk.next !== this.byStart[chunk.end]) {
throw new Error('Cannot overwrite across a split point');
}
chunk = chunk.next;
chunk.edit('', false);
}
first.edit(content, storeName, contentOnly);
if (first !== last) {
var chunk = first.next;
while (chunk !== last) {
chunk.edit('', false);
chunk = chunk.next;
}
chunk.edit('', false);
}
} else {

@@ -846,15 +849,10 @@ // must be inserting at the end

MagicString.prototype.lastChar = function lastChar () {
if (this.outro.length)
{ return this.outro[this.outro.length - 1]; }
if (this.outro.length) { return this.outro[this.outro.length - 1]; }
var chunk = this.lastChunk;
do {
if (chunk.outro.length)
{ return chunk.outro[chunk.outro.length - 1]; }
if (chunk.content.length)
{ return chunk.content[chunk.content.length - 1]; }
if (chunk.intro.length)
{ return chunk.intro[chunk.intro.length - 1]; }
} while (chunk = chunk.previous);
if (this.intro.length)
{ return this.intro[this.intro.length - 1]; }
if (chunk.outro.length) { return chunk.outro[chunk.outro.length - 1]; }
if (chunk.content.length) { return chunk.content[chunk.content.length - 1]; }
if (chunk.intro.length) { return chunk.intro[chunk.intro.length - 1]; }
} while ((chunk = chunk.previous));
if (this.intro.length) { return this.intro[this.intro.length - 1]; }
return '';

@@ -865,4 +863,3 @@ };

var lineIndex = this.outro.lastIndexOf(n);
if (lineIndex !== -1)
{ return this.outro.substr(lineIndex + 1); }
if (lineIndex !== -1) { return this.outro.substr(lineIndex + 1); }
var lineStr = this.outro;

@@ -873,4 +870,3 @@ var chunk = this.lastChunk;

lineIndex = chunk.outro.lastIndexOf(n);
if (lineIndex !== -1)
{ return chunk.outro.substr(lineIndex + 1) + lineStr; }
if (lineIndex !== -1) { return chunk.outro.substr(lineIndex + 1) + lineStr; }
lineStr = chunk.outro + lineStr;

@@ -881,4 +877,3 @@ }

lineIndex = chunk.content.lastIndexOf(n);
if (lineIndex !== -1)
{ return chunk.content.substr(lineIndex + 1) + lineStr; }
if (lineIndex !== -1) { return chunk.content.substr(lineIndex + 1) + lineStr; }
lineStr = chunk.content + lineStr;

@@ -889,10 +884,8 @@ }

lineIndex = chunk.intro.lastIndexOf(n);
if (lineIndex !== -1)
{ return chunk.intro.substr(lineIndex + 1) + lineStr; }
if (lineIndex !== -1) { return chunk.intro.substr(lineIndex + 1) + lineStr; }
lineStr = chunk.intro + lineStr;
}
} while (chunk = chunk.previous);
} while ((chunk = chunk.previous));
lineIndex = this.intro.lastIndexOf(n);
if (lineIndex !== -1)
{ return this.intro.substr(lineIndex + 1) + lineStr; }
if (lineIndex !== -1) { return this.intro.substr(lineIndex + 1) + lineStr; }
return this.intro + lineStr;

@@ -1011,7 +1004,9 @@ };

do {
if (chunk.intro.length && chunk.intro.trim() ||
chunk.content.length && chunk.content.trim() ||
chunk.outro.length && chunk.outro.trim())
if (
(chunk.intro.length && chunk.intro.trim()) ||
(chunk.content.length && chunk.content.trim()) ||
(chunk.outro.length && chunk.outro.trim())
)
{ return false; }
} while (chunk = chunk.next);
} while ((chunk = chunk.next));
return true;

@@ -1025,3 +1020,3 @@ };

length += chunk.intro.length + chunk.content.length + chunk.outro.length;
} while (chunk = chunk.next);
} while ((chunk = chunk.next));
return length;

@@ -1278,2 +1273,2 @@ };

})));
}));

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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