Socket
Socket
Sign inDemoInstall

stack-generator

Package Overview
Dependencies
1
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.0.3

2

dist/stack-generator.js

@@ -24,3 +24,3 @@ (function(root, factory) {

var curr = arguments.callee;
while (curr && stack.length < maxStackSize) {
while (curr && stack.length < maxStackSize && curr['arguments']) {
// Allow V8 optimizations

@@ -27,0 +27,0 @@ var args = new Array(curr['arguments'].length);

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

!function(t,e){"use strict";"function"==typeof define&&define.amd?define("stackframe",[],e):"object"==typeof exports?module.exports=e():t.StackFrame=e()}(this,function(){"use strict";function t(t){return!isNaN(parseFloat(t))&&isFinite(t)}function e(t){return t.charAt(0).toUpperCase()+t.substring(1)}function r(t){return function(){return this[t]}}function n(t){if(t instanceof Object)for(var r=0;r<u.length;r++)t.hasOwnProperty(u[r])&&void 0!==t[u[r]]&&this["set"+e(u[r])](t[u[r]])}var i=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],a=["fileName","functionName","source"],s=["args"],u=i.concat(o,a,s);n.prototype={getArgs:function(){return this.args},setArgs:function(t){if("[object Array]"!==Object.prototype.toString.call(t))throw new TypeError("Args must be an Array");this.args=t},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(t){if(t instanceof n)this.evalOrigin=t;else{if(!(t instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new n(t)}},toString:function(){var e=this.getFunctionName()||"{anonymous}",r="("+(this.getArgs()||[]).join(",")+")",n=this.getFileName()?"@"+this.getFileName():"",i=t(this.getLineNumber())?":"+this.getLineNumber():"",o=t(this.getColumnNumber())?":"+this.getColumnNumber():"";return e+r+n+i+o}};for(var c=0;c<i.length;c++)n.prototype["get"+e(i[c])]=r(i[c]),n.prototype["set"+e(i[c])]=function(t){return function(e){this[t]=Boolean(e)}}(i[c]);for(var f=0;f<o.length;f++)n.prototype["get"+e(o[f])]=r(o[f]),n.prototype["set"+e(o[f])]=function(e){return function(r){if(!t(r))throw new TypeError(e+" must be a Number");this[e]=Number(r)}}(o[f]);for(var g=0;g<a.length;g++)n.prototype["get"+e(a[g])]=r(a[g]),n.prototype["set"+e(a[g])]=function(t){return function(e){this[t]=String(e)}}(a[g]);return n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("stack-generator",["stackframe"],e):"object"==typeof exports?module.exports=e(require("stackframe")):t.StackGenerator=e(t.StackFrame)}(this,function(t){return{backtrace:function(e){var r=[],n=10;"object"==typeof e&&"number"==typeof e.maxStackSize&&(n=e.maxStackSize);for(var i=arguments.callee;i&&r.length<n;){for(var o=new Array(i.arguments.length),a=0;a<o.length;++a)o[a]=i.arguments[a];/function(?:\s+([\w$]+))+\s*\(/.test(i.toString())?r.push(new t({functionName:RegExp.$1||void 0,args:o})):r.push(new t({args:o}));try{i=i.caller}catch(s){break}}return r}}});
!function(t,e){"use strict";"function"==typeof define&&define.amd?define("stackframe",[],e):"object"==typeof exports?module.exports=e():t.StackFrame=e()}(this,function(){"use strict";function t(t){return!isNaN(parseFloat(t))&&isFinite(t)}function e(t){return t.charAt(0).toUpperCase()+t.substring(1)}function r(t){return function(){return this[t]}}function n(t){if(t instanceof Object)for(var r=0;r<u.length;r++)t.hasOwnProperty(u[r])&&void 0!==t[u[r]]&&this["set"+e(u[r])](t[u[r]])}var i=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],a=["fileName","functionName","source"],s=["args"],u=i.concat(o,a,s);n.prototype={getArgs:function(){return this.args},setArgs:function(t){if("[object Array]"!==Object.prototype.toString.call(t))throw new TypeError("Args must be an Array");this.args=t},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(t){if(t instanceof n)this.evalOrigin=t;else{if(!(t instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new n(t)}},toString:function(){var e=this.getFunctionName()||"{anonymous}",r="("+(this.getArgs()||[]).join(",")+")",n=this.getFileName()?"@"+this.getFileName():"",i=t(this.getLineNumber())?":"+this.getLineNumber():"",o=t(this.getColumnNumber())?":"+this.getColumnNumber():"";return e+r+n+i+o}};for(var c=0;c<i.length;c++)n.prototype["get"+e(i[c])]=r(i[c]),n.prototype["set"+e(i[c])]=function(t){return function(e){this[t]=Boolean(e)}}(i[c]);for(var f=0;f<o.length;f++)n.prototype["get"+e(o[f])]=r(o[f]),n.prototype["set"+e(o[f])]=function(e){return function(r){if(!t(r))throw new TypeError(e+" must be a Number");this[e]=Number(r)}}(o[f]);for(var g=0;g<a.length;g++)n.prototype["get"+e(a[g])]=r(a[g]),n.prototype["set"+e(a[g])]=function(t){return function(e){this[t]=String(e)}}(a[g]);return n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("stack-generator",["stackframe"],e):"object"==typeof exports?module.exports=e(require("stackframe")):t.StackGenerator=e(t.StackFrame)}(this,function(t){return{backtrace:function(e){var r=[],n=10;"object"==typeof e&&"number"==typeof e.maxStackSize&&(n=e.maxStackSize);for(var i=arguments.callee;i&&r.length<n&&i.arguments;){for(var o=new Array(i.arguments.length),a=0;a<o.length;++a)o[a]=i.arguments[a];/function(?:\s+([\w$]+))+\s*\(/.test(i.toString())?r.push(new t({functionName:RegExp.$1||void 0,args:o})):r.push(new t({args:o}));try{i=i.caller}catch(s){break}}return r}}});
//# sourceMappingURL=stack-generator.min.js.map

@@ -9,20 +9,14 @@ module.exports = function(config) {

var customLaunchers = {
slIOS8: {
base: 'SauceLabs',
browserName: 'iPhone',
platform: 'OS X 10.10',
version: '8.4'
},
// slIOS8: {
// base: 'SauceLabs',
// browserName: 'iPhone',
// platform: 'OS X 10.12',
// version: '8.4'
// },
slIOS9: {
base: 'SauceLabs',
browserName: 'iPhone',
platform: 'OS X 10.11',
version: '9.2'
platform: 'OS X 10.12',
version: '9.3'
},
slIOS10: {
base: 'SauceLabs',
browserName: 'iPhone',
platform: 'macOS 10.12',
version: '10.2'
},
slAndroid4: {

@@ -61,7 +55,2 @@ base: 'SauceLabs',

},
slFirefoxBeta: {
base: 'SauceLabs',
browserName: 'firefox',
version: 'beta'
},
slSafari8: {

@@ -82,9 +71,5 @@ base: 'SauceLabs',

browserName: 'safari',
platform: 'macOS 10.12',
platform: 'OS X 10.11',
version: '10.0'
},
slOpera: {
base: 'SauceLabs',
browserName: 'opera'
},
slEdge14: {

@@ -142,3 +127,4 @@ base: 'SauceLabs',

'spec/spec-helper.js',
'spec/*-spec.js'
'spec/*-spec.js',
{ pattern: 'spec/fixtures/**', included: false }
],

@@ -145,0 +131,0 @@ exclude: [],

@@ -9,3 +9,4 @@ module.exports = function (config) {

'spec/spec-helper.js',
'spec/*-spec.js'
'spec/*-spec.js',
{ pattern: 'spec/fixtures/**', included: false }
],

@@ -12,0 +13,0 @@ reporters: ['spec'],

@@ -7,5 +7,6 @@ {

"Victor Homyakov <vkhomyackov@gmail.com> (https://github.com/victor-homyakov)",
"Oliver Salzburg (https://github.com/oliversalzburg)"
"Oliver Salzburg (https://github.com/oliversalzburg)",
"Ben Gourley (https://github.com/bengourley)"
],
"version": "2.0.2",
"version": "2.0.3",
"license": "MIT",

@@ -12,0 +13,0 @@ "keywords": [

@@ -24,3 +24,3 @@ (function(root, factory) {

var curr = arguments.callee;
while (curr && stack.length < maxStackSize) {
while (curr && stack.length < maxStackSize && curr['arguments']) {
// Allow V8 optimizations

@@ -27,0 +27,0 @@ var args = new Array(curr['arguments'].length);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc