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.1 to 2.0.2

2

dist/stack-generator.min.js

@@ -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[0].toUpperCase()+t.substring(1)}function r(t){return function(){return this[t]}}function n(t){if(t instanceof Object)for(var r=i.concat(o.concat(a.concat(s))),n=0;n<r.length;n++)t.hasOwnProperty(r[n])&&void 0!==t[r[n]]&&this["set"+e(r[n])](t[r[n]])}var i=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],a=["fileName","functionName","source"],s=["args"];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 u=0;u<i.length;u++)n.prototype["get"+e(i[u])]=r(i[u]),n.prototype["set"+e(i[u])]=function(t){return function(e){this[t]=Boolean(e)}}(i[u]);for(var c=0;c<o.length;c++)n.prototype["get"+e(o[c])]=r(o[c]),n.prototype["set"+e(o[c])]=function(e){return function(r){if(!t(r))throw new TypeError(e+" must be a Number");this[e]=Number(r)}}(o[c]);for(var f=0;f<a.length;f++)n.prototype["get"+e(a[f])]=r(a[f]),n.prototype["set"+e(a[f])]=function(t){return function(e){this[t]=String(e)}}(a[f]);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;){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

@@ -21,2 +21,8 @@ module.exports = function(config) {

},
slIOS10: {
base: 'SauceLabs',
browserName: 'iPhone',
platform: 'macOS 10.12',
version: '10.2'
},
slAndroid4: {

@@ -34,5 +40,12 @@ base: 'SauceLabs',

},
slAndroid6: {
base: 'SauceLabs',
browserName: 'Android',
platform: 'Linux',
version: '6.0'
},
slChrome: {
base: 'SauceLabs',
browserName: 'chrome'
browserName: 'chrome',
version: 'latest'
},

@@ -44,12 +57,11 @@ slChromeBeta: {

},
slChromeCanary: {
slFirefox: {
base: 'SauceLabs',
browserName: 'chrome',
version: 'dev'
browserName: 'firefox',
version: 'latest'
},
slFirefox42: {
slFirefoxBeta: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Windows 8.1',
version: '42.0'
version: 'beta'
},

@@ -60,3 +72,3 @@ slSafari8: {

platform: 'OS X 10.10',
version: '8'
version: '8.0'
},

@@ -67,3 +79,3 @@ slSafari9: {

platform: 'OS X 10.11',
version: '9'
version: '9.0'
},

@@ -73,4 +85,4 @@ slSafari10: {

browserName: 'safari',
platform: 'OS X 10.11',
version: '10'
platform: 'macOS 10.12',
version: '10.0'
},

@@ -87,2 +99,8 @@ slOpera: {

},
slEdge13: {
base: 'SauceLabs',
browserName: 'microsoftedge',
platform: 'Windows 10',
version: '13.10586'
},
slIE11: {

@@ -104,4 +122,5 @@ base: 'SauceLabs',

platform: 'Windows 7',
version: '9'
version: '9.0'
}
// Too unreliable on Sauce :(
// slIE8: {

@@ -111,5 +130,4 @@ // base: 'SauceLabs',

// platform: 'Windows XP',
// version: '8'
// version: '8.0'
// }
// Too unreliable on Sauce :(
//slIE7: {

@@ -116,0 +134,0 @@ // base: 'SauceLabs',

@@ -9,3 +9,3 @@ {

],
"version": "2.0.1",
"version": "2.0.2",
"license": "MIT",

@@ -22,30 +22,30 @@ "keywords": [

"dependencies": {
"stackframe": "^1.0.3"
"stackframe": "^1.0.4"
},
"devDependencies": {
"colors": "^1.1.2",
"del": "^2.2.0",
"del": "^3.0.0",
"gulp": "^3.9.0",
"gulp-concat": "^2.6.0",
"gulp-concat": "^2.6.1",
"gulp-coveralls": "^0.1.4",
"gulp-jshint": "^2.0.0",
"gulp-jshint": "^2.0.4",
"gulp-rename": "^1.2.2",
"gulp-sourcemaps": "^1.6.0",
"gulp-uglify": "^1.5.1",
"jasmine": "^2.4.1",
"jasmine-core": "^2.4.1",
"gulp-sourcemaps": "^1.12.0",
"gulp-uglify": "^1.5.4",
"jasmine": "^2.7.0",
"jasmine-core": "^2.7.0",
"jscs": "^2.9.0",
"jshint": "^2.8.0",
"karma": "^0.13.15",
"karma-chrome-launcher": "^0.1.12",
"karma-coverage": "^0.5.3",
"karma-firefox-launcher": "^0.1.7",
"karma-ie-launcher": "^0.2.0",
"karma-jasmine": "^0.3.6",
"karma-opera-launcher": "^0.3.0",
"karma-phantomjs2-launcher": "^0.4.0",
"karma-safari-launcher": "^0.1.1",
"karma-sauce-launcher": "^0.2.14",
"karma-spec-reporter": "0.0.23",
"run-sequence": "^1.1.5"
"jshint": "^2.9.5",
"karma": "^1.7.0",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^1.1.1",
"karma-firefox-launcher": "^1.0.1",
"karma-ie-launcher": "^1.0.0",
"karma-jasmine": "^1.1.0",
"karma-opera-launcher": "^1.0.0",
"karma-phantomjs2-launcher": "^0.5.0",
"karma-safari-launcher": "^1.0.0",
"karma-sauce-launcher": "^1.1.0",
"karma-spec-reporter": "^0.0.31",
"run-sequence": "^1.2.2"
},

@@ -57,4 +57,5 @@ "bugs": {

"scripts": {
"test": "gulp test"
"test": "gulp test",
"prepublish": "gulp dist"
}
}

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