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

get-own-property-symbols

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-own-property-symbols - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

2

build/get-own-property-symbols.js
/*! (C) WebReflection Mit Style License */
(function(e,t){"use strict";if(t in e)return;var n,r=typeof global==typeof r?window:global,i=0,s=""+Math.random(),o="__symbol:",u=o.length,a="__symbol@@"+s,f="defineProperty",l="defineProperties",c="getOwnPropertyNames",h="getOwnPropertyDescriptor",p="propertyIsEnumerable",d=e[c],v=e[h],m=e.create,g=e.keys,y=e[f],b=e[l],w=v(e,c),E=e.prototype,S=E.hasOwnProperty,x=E[p],T=E.toString,N=Array.prototype.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},C=function(e,t,n){S.call(e,a)||y(e,a,{enumerable:!1,configurable:!1,writable:!1,value:{}}),e[a]["@@"+t]=n},k=function(e,t){var n=m(e);return d(t).forEach(function(e){_.call(t,e)&&F(n,e,t[e])}),n},L=function(e){var t=m(e);return t.enumerable=!1,t},A=function(){},O=function(e){return e!=a&&!S.call(H,e)},M=function(e){return e!=a&&S.call(H,e)},_=function R(e){var t=""+e;return M(t)?S.call(this,t)&&this[a]["@@"+t]:x.call(this,e)},D=function(t){var r={enumerable:!1,configurable:!0,get:A,set:function(e){n(this,t,{enumerable:!1,configurable:!0,writable:!0,value:e}),C(this,t,!0)}};return y(E,t,r),H[t]=y(e(t),"constructor",B)},P=function(t){if(this&&this!==r)throw new TypeError("Symbol is not a constructor");return D(o.concat(t||"",s,++i))},H=m(null),B={value:P},j=function(e){return H[e]},F=function(t,r,i){var s=""+r;return M(s)?(n(t,s,i.enumerable?L(i):i),C(t,s,!!i.enumerable)):y(t,r,i),t},I=function(t){return d(t).filter(M).map(j)};w.value=F,y(e,f,w),w.value=I,y(e,t,w),w.value=function(t){return d(t).filter(O)},y(e,c,w),w.value=function U(e,t){var n=I(t);return n.length?g(t).concat(n).forEach(function(n){_.call(t,n)&&F(e,n,t[n])}):U(e,t),e},y(e,l,w),w.value=_,y(E,p,w),w.value=P,y(r,"Symbol",w),w.value=function(e){var t=o.concat(o,e,s);return t in E?H[t]:D(t)},y(P,"for",w),w.value=function(e){return S.call(H,e)?e.slice(u*2,-s.length):void 0},y(P,"keyFor",w),w.value=function(t,n){var r=v(t,n);return r&&M(n)&&(r.enumerable=_.call(t,n)),r},y(e,h,w),w.value=function(e,t){return arguments.length===1?m(e):k(e,t)},y(e,"create",w),w.value=function(){var e=T.call(this);return e==="[object String]"&&M(this)?"[object Symbol]":e},y(E,"toString",w);try{n=m(y({},o,{get:function(){return y(this,o,{value:!1})[o]}}))[o]||y}catch(q){n=function(e,t,n){var r=v(E,t);delete E[t],y(e,t,n),y(E,t,r)}}})(Object,"getOwnPropertySymbols"),function(e,t){var n=e.defineProperty,r=e.prototype,i=r.toString,s="toStringTag",o;["iterator","match","replace","search","split","hasInstance","isConcatSpreadable","unscopables","species","toPrimitive",s].forEach(function(t){if(!(t in Symbol)){n(Symbol,t,{value:Symbol(t)});switch(t){case s:o=e.getOwnPropertyDescriptor(r,"toString"),o.value,o.value=function(){var e=i.call(this),t=this[Symbol.toStringTag];return typeof t=="undefined"?e:"[object "+t+"]"},n(r,"toString",o)}}})}(Object,Symbol),function(e,t,n){t[e]||(t[e]=function(){var e=0,t=this;return{next:function(){var r=t.length<=e;return r?{done:r}:{done:r,value:t[e++]}}}}),n[e]||(n[e]=function(){var e=String.fromCodePoint,t=this,n=0,r=t.length;return{next:function(){var o=r<=n,u=o?"":e(t.codePointAt(n));return n+=u.length,o?{done:o}:{done:o,value:u}}}})}(Symbol.iterator,Array.prototype,String.prototype);
(function(e,t){"use strict";if(t in e)return;var n,r=typeof global==typeof r?window:global,i=0,s=""+Math.random(),o="__symbol:",u=o.length,a="__symbol@@"+s,f="defineProperty",l="defineProperties",c="getOwnPropertyNames",h="getOwnPropertyDescriptor",p="propertyIsEnumerable",d=e[c],v=e[h],m=e.create,g=e.keys,y=e[f],b=e[l],w=v(e,c),E=e.prototype,S=E.hasOwnProperty,x=E[p],T=E.toString,N=Array.prototype.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},C=function(e,t,n){S.call(e,a)||y(e,a,{enumerable:!1,configurable:!1,writable:!1,value:{}}),e[a]["@@"+t]=n},k=function(e,t){var n=m(e);return d(t).forEach(function(e){_.call(t,e)&&F(n,e,t[e])}),n},L=function(e){var t=m(e);return t.enumerable=!1,t},A=function(){},O=function(e){return e!=a&&!S.call(H,e)},M=function(e){return e!=a&&S.call(H,e)},_=function R(e){var t=""+e;return M(t)?S.call(this,t)&&this[a]["@@"+t]:x.call(this,e)},D=function(t){var r={enumerable:!1,configurable:!0,get:A,set:function(e){n(this,t,{enumerable:!1,configurable:!0,writable:!0,value:e}),C(this,t,!0)}};return y(E,t,r),H[t]=y(e(t),"constructor",B)},P=function(t){if(this&&this!==r)throw new TypeError("Symbol is not a constructor");return D(o.concat(t||"",s,++i))},H=m(null),B={value:P},j=function(e){return H[e]},F=function(t,r,i){var s=""+r;return M(s)?(n(t,s,i.enumerable?L(i):i),C(t,s,!!i.enumerable)):y(t,r,i),t},I=function(t){return d(t).filter(M).map(j)};w.value=F,y(e,f,w),w.value=I,y(e,t,w),w.value=function(t){return d(t).filter(O)},y(e,c,w),w.value=function U(e,t){var n=I(t);return n.length?g(t).concat(n).forEach(function(n){_.call(t,n)&&F(e,n,t[n])}):U(e,t),e},y(e,l,w),w.value=_,y(E,p,w),w.value=P,y(r,"Symbol",w),w.value=function(e){var t=o.concat(o,e,s);return t in E?H[t]:D(t)},y(P,"for",w),w.value=function(e){return S.call(H,e)?e.slice(u*2,-s.length):void 0},y(P,"keyFor",w),w.value=function(t,n){var r=v(t,n);return r&&M(n)&&(r.enumerable=_.call(t,n)),r},y(e,h,w),w.value=function(e,t){return arguments.length===1?m(e):k(e,t)},y(e,"create",w),w.value=function(){var e=T.call(this);return e==="[object String]"&&M(this)?"[object Symbol]":e},y(E,"toString",w);try{n=m(y({},o,{get:function(){return y(this,o,{value:!1})[o]}}))[o]||y}catch(q){n=function(e,t,n){var r=v(E,t);delete E[t],y(e,t,n),y(E,t,r)}}})(Object,"getOwnPropertySymbols"),function(e,t){var n=e.defineProperty,r=e.prototype,i=r.toString,s="toStringTag",o;["iterator","match","replace","search","split","hasInstance","isConcatSpreadable","unscopables","species","toPrimitive",s].forEach(function(t){if(!(t in Symbol)){n(Symbol,t,{value:Symbol(t)});switch(t){case s:o=e.getOwnPropertyDescriptor(r,"toString"),o.value=function(){var e=i.call(this),t=this[Symbol.toStringTag];return typeof t=="undefined"?e:"[object "+t+"]"},n(r,"toString",o)}}})}(Object,Symbol),function(e,t,n){function r(){return this}t[e]||(t[e]=function(){var t=0,n=this,i={next:function(){var r=n.length<=t;return r?{done:r}:{done:r,value:n[t++]}}};return i[e]=r,i}),n[e]||(n[e]=function(){var t=String.fromCodePoint,n=this,i=0,s=n.length,o={next:function(){var r=s<=i,o=r?"":t(n.codePointAt(i));return i+=o.length,r?{done:r}:{done:r,value:o}}};return o[e]=r,o})}(Symbol.iterator,Array.prototype,String.prototype);

@@ -268,3 +268,2 @@ /*!

descriptor = O.getOwnPropertyDescriptor(ObjectProto, 'toString');
descriptor.value;
descriptor.value = function () {

@@ -286,14 +285,21 @@ var

function returnThis() { return this; }
// make Arrays usable as iterators
// so that other iterables can copy same logic
if (!AP[Si]) AP[Si] = function () {
var i = 0, self = this;
return {
next: function next() {
var done = self.length <= i;
return done ?
{done: done} :
{done: done, value: self[i++]};
var
i = 0,
self = this,
iterator = {
next: function next() {
var done = self.length <= i;
return done ?
{done: done} :
{done: done, value: self[i++]};
}
}
};
;
iterator[Si] = returnThis;
return iterator;
};

@@ -308,18 +314,20 @@

i = 0,
length = self.length
length = self.length,
iterator = {
next: function next() {
var
done = length <= i,
c = done ? '' : fromCodePoint(self.codePointAt(i))
;
i += c.length;
return done ?
{done: done} :
{done: done, value: c};
}
}
;
return {
next: function next() {
var
done = length <= i,
c = done ? '' : fromCodePoint(self.codePointAt(i))
;
i += c.length;
return done ?
{done: done} :
{done: done, value: c};
}
};
iterator[Si] = returnThis;
return iterator;
};
}(Symbol.iterator, Array.prototype, String.prototype));

@@ -268,3 +268,2 @@ /*!

descriptor = O.getOwnPropertyDescriptor(ObjectProto, 'toString');
descriptor.value;
descriptor.value = function () {

@@ -286,14 +285,21 @@ var

function returnThis() { return this; }
// make Arrays usable as iterators
// so that other iterables can copy same logic
if (!AP[Si]) AP[Si] = function () {
var i = 0, self = this;
return {
next: function next() {
var done = self.length <= i;
return done ?
{done: done} :
{done: done, value: self[i++]};
var
i = 0,
self = this,
iterator = {
next: function next() {
var done = self.length <= i;
return done ?
{done: done} :
{done: done, value: self[i++]};
}
}
};
;
iterator[Si] = returnThis;
return iterator;
};

@@ -308,16 +314,18 @@

i = 0,
length = self.length
length = self.length,
iterator = {
next: function next() {
var
done = length <= i,
c = done ? '' : fromCodePoint(self.codePointAt(i))
;
i += c.length;
return done ?
{done: done} :
{done: done, value: c};
}
}
;
return {
next: function next() {
var
done = length <= i,
c = done ? '' : fromCodePoint(self.codePointAt(i))
;
i += c.length;
return done ?
{done: done} :
{done: done, value: c};
}
};
iterator[Si] = returnThis;
return iterator;
};

@@ -324,0 +332,0 @@

{
"version": "0.7.0",
"version": "0.8.0",
"license": "MIT",

@@ -4,0 +4,0 @@ "name": "get-own-property-symbols",

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