sw-background-sync-queue
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -35,3 +35,3 @@ /* | ||
var stackframe = createCommonjsModule(function (module, exports) { | ||
(function (root, factory) { | ||
(function(root, factory) { | ||
'use strict'; | ||
@@ -46,3 +46,3 @@ // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers. | ||
} | ||
}(commonjsGlobal, function () { | ||
}(commonjsGlobal, function() { | ||
'use strict'; | ||
@@ -58,3 +58,3 @@ function _isNumber(n) { | ||
function _getter(p) { | ||
return function () { | ||
return function() { | ||
return this[p]; | ||
@@ -69,5 +69,6 @@ }; | ||
var props = booleanProps.concat(numericProps, stringProps, arrayProps); | ||
function StackFrame(obj) { | ||
if (obj instanceof Object) { | ||
var props = booleanProps.concat(numericProps.concat(stringProps.concat(arrayProps))); | ||
for (var i = 0; i < props.length; i++) { | ||
@@ -82,6 +83,6 @@ if (obj.hasOwnProperty(props[i]) && obj[props[i]] !== undefined) { | ||
StackFrame.prototype = { | ||
getArgs: function () { | ||
getArgs: function() { | ||
return this.args; | ||
}, | ||
setArgs: function (v) { | ||
setArgs: function(v) { | ||
if (Object.prototype.toString.call(v) !== '[object Array]') { | ||
@@ -93,6 +94,6 @@ throw new TypeError('Args must be an Array'); | ||
getEvalOrigin: function () { | ||
getEvalOrigin: function() { | ||
return this.evalOrigin; | ||
}, | ||
setEvalOrigin: function (v) { | ||
setEvalOrigin: function(v) { | ||
if (v instanceof StackFrame) { | ||
@@ -107,3 +108,3 @@ this.evalOrigin = v; | ||
toString: function () { | ||
toString: function() { | ||
var functionName = this.getFunctionName() || '{anonymous}'; | ||
@@ -120,4 +121,4 @@ var args = '(' + (this.getArgs() || []).join(',') + ')'; | ||
StackFrame.prototype['get' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]); | ||
StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function(p) { | ||
return function(v) { | ||
this[p] = Boolean(v); | ||
@@ -130,4 +131,4 @@ }; | ||
StackFrame.prototype['get' + _capitalize(numericProps[j])] = _getter(numericProps[j]); | ||
StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function(p) { | ||
return function(v) { | ||
if (!_isNumber(v)) { | ||
@@ -143,4 +144,4 @@ throw new TypeError(p + ' must be a Number'); | ||
StackFrame.prototype['get' + _capitalize(stringProps[k])] = _getter(stringProps[k]); | ||
StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function(p) { | ||
return function(v) { | ||
this[p] = String(v); | ||
@@ -453,2 +454,5 @@ }; | ||
function throwError(message) { | ||
// Collapse any newlines or whitespace into a single space. | ||
message = message.replace(/\s+/g, ' '); | ||
const error = new Error(message); | ||
@@ -464,3 +468,3 @@ const stackFrames = errorStackParser.parse(error); | ||
error.message = `Invalid call to ${stackFrames[2].functionName}() — ` + | ||
message.replace(/\s+/g, ' '); | ||
message; | ||
error.name = stackFrames[1].functionName.replace(/^Object\./, ''); | ||
@@ -467,0 +471,0 @@ } |
@@ -43,3 +43,3 @@ /* | ||
var stackframe = createCommonjsModule(function (module, exports) { | ||
(function (root, factory) { | ||
(function(root, factory) { | ||
'use strict'; | ||
@@ -54,3 +54,3 @@ // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers. | ||
} | ||
}(commonjsGlobal, function () { | ||
}(commonjsGlobal, function() { | ||
'use strict'; | ||
@@ -66,3 +66,3 @@ function _isNumber(n) { | ||
function _getter(p) { | ||
return function () { | ||
return function() { | ||
return this[p]; | ||
@@ -77,5 +77,6 @@ }; | ||
var props = booleanProps.concat(numericProps, stringProps, arrayProps); | ||
function StackFrame(obj) { | ||
if (obj instanceof Object) { | ||
var props = booleanProps.concat(numericProps.concat(stringProps.concat(arrayProps))); | ||
for (var i = 0; i < props.length; i++) { | ||
@@ -90,6 +91,6 @@ if (obj.hasOwnProperty(props[i]) && obj[props[i]] !== undefined) { | ||
StackFrame.prototype = { | ||
getArgs: function () { | ||
getArgs: function() { | ||
return this.args; | ||
}, | ||
setArgs: function (v) { | ||
setArgs: function(v) { | ||
if (Object.prototype.toString.call(v) !== '[object Array]') { | ||
@@ -101,6 +102,6 @@ throw new TypeError('Args must be an Array'); | ||
getEvalOrigin: function () { | ||
getEvalOrigin: function() { | ||
return this.evalOrigin; | ||
}, | ||
setEvalOrigin: function (v) { | ||
setEvalOrigin: function(v) { | ||
if (v instanceof StackFrame) { | ||
@@ -115,3 +116,3 @@ this.evalOrigin = v; | ||
toString: function () { | ||
toString: function() { | ||
var functionName = this.getFunctionName() || '{anonymous}'; | ||
@@ -128,4 +129,4 @@ var args = '(' + (this.getArgs() || []).join(',') + ')'; | ||
StackFrame.prototype['get' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]); | ||
StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function(p) { | ||
return function(v) { | ||
this[p] = Boolean(v); | ||
@@ -138,4 +139,4 @@ }; | ||
StackFrame.prototype['get' + _capitalize(numericProps[j])] = _getter(numericProps[j]); | ||
StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function(p) { | ||
return function(v) { | ||
if (!_isNumber(v)) { | ||
@@ -151,4 +152,4 @@ throw new TypeError(p + ' must be a Number'); | ||
StackFrame.prototype['get' + _capitalize(stringProps[k])] = _getter(stringProps[k]); | ||
StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function(p) { | ||
return function(v) { | ||
this[p] = String(v); | ||
@@ -461,2 +462,5 @@ }; | ||
function throwError(message) { | ||
// Collapse any newlines or whitespace into a single space. | ||
message = message.replace(/\s+/g, ' '); | ||
const error = new Error(message); | ||
@@ -472,3 +476,3 @@ const stackFrames = errorStackParser.parse(error); | ||
error.message = `Invalid call to ${stackFrames[2].functionName}() — ` + | ||
message.replace(/\s+/g, ' '); | ||
message; | ||
error.name = stackFrames[1].functionName.replace(/^Object\./, ''); | ||
@@ -475,0 +479,0 @@ } |
@@ -35,3 +35,3 @@ /* | ||
var stackframe = createCommonjsModule(function (module, exports) { | ||
(function (root, factory) { | ||
(function(root, factory) { | ||
'use strict'; | ||
@@ -46,3 +46,3 @@ // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers. | ||
} | ||
}(commonjsGlobal, function () { | ||
}(commonjsGlobal, function() { | ||
'use strict'; | ||
@@ -58,3 +58,3 @@ function _isNumber(n) { | ||
function _getter(p) { | ||
return function () { | ||
return function() { | ||
return this[p]; | ||
@@ -69,5 +69,6 @@ }; | ||
var props = booleanProps.concat(numericProps, stringProps, arrayProps); | ||
function StackFrame(obj) { | ||
if (obj instanceof Object) { | ||
var props = booleanProps.concat(numericProps.concat(stringProps.concat(arrayProps))); | ||
for (var i = 0; i < props.length; i++) { | ||
@@ -82,6 +83,6 @@ if (obj.hasOwnProperty(props[i]) && obj[props[i]] !== undefined) { | ||
StackFrame.prototype = { | ||
getArgs: function () { | ||
getArgs: function() { | ||
return this.args; | ||
}, | ||
setArgs: function (v) { | ||
setArgs: function(v) { | ||
if (Object.prototype.toString.call(v) !== '[object Array]') { | ||
@@ -93,6 +94,6 @@ throw new TypeError('Args must be an Array'); | ||
getEvalOrigin: function () { | ||
getEvalOrigin: function() { | ||
return this.evalOrigin; | ||
}, | ||
setEvalOrigin: function (v) { | ||
setEvalOrigin: function(v) { | ||
if (v instanceof StackFrame) { | ||
@@ -107,3 +108,3 @@ this.evalOrigin = v; | ||
toString: function () { | ||
toString: function() { | ||
var functionName = this.getFunctionName() || '{anonymous}'; | ||
@@ -120,4 +121,4 @@ var args = '(' + (this.getArgs() || []).join(',') + ')'; | ||
StackFrame.prototype['get' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]); | ||
StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function(p) { | ||
return function(v) { | ||
this[p] = Boolean(v); | ||
@@ -130,4 +131,4 @@ }; | ||
StackFrame.prototype['get' + _capitalize(numericProps[j])] = _getter(numericProps[j]); | ||
StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function(p) { | ||
return function(v) { | ||
if (!_isNumber(v)) { | ||
@@ -143,4 +144,4 @@ throw new TypeError(p + ' must be a Number'); | ||
StackFrame.prototype['get' + _capitalize(stringProps[k])] = _getter(stringProps[k]); | ||
StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function(p) { | ||
return function(v) { | ||
this[p] = String(v); | ||
@@ -453,2 +454,5 @@ }; | ||
function throwError(message) { | ||
// Collapse any newlines or whitespace into a single space. | ||
message = message.replace(/\s+/g, ' '); | ||
const error = new Error(message); | ||
@@ -464,3 +468,3 @@ const stackFrames = errorStackParser.parse(error); | ||
error.message = `Invalid call to ${stackFrames[2].functionName}() — ` + | ||
message.replace(/\s+/g, ' '); | ||
message; | ||
error.name = stackFrames[1].functionName.replace(/^Object\./, ''); | ||
@@ -467,0 +471,0 @@ } |
@@ -503,3 +503,3 @@ /* | ||
var stackframe = createCommonjsModule(function (module, exports) { | ||
(function (root, factory) { | ||
(function(root, factory) { | ||
'use strict'; | ||
@@ -514,3 +514,3 @@ // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers. | ||
} | ||
}(commonjsGlobal, function () { | ||
}(commonjsGlobal, function() { | ||
'use strict'; | ||
@@ -526,3 +526,3 @@ function _isNumber(n) { | ||
function _getter(p) { | ||
return function () { | ||
return function() { | ||
return this[p]; | ||
@@ -537,5 +537,6 @@ }; | ||
var props = booleanProps.concat(numericProps, stringProps, arrayProps); | ||
function StackFrame(obj) { | ||
if (obj instanceof Object) { | ||
var props = booleanProps.concat(numericProps.concat(stringProps.concat(arrayProps))); | ||
for (var i = 0; i < props.length; i++) { | ||
@@ -550,6 +551,6 @@ if (obj.hasOwnProperty(props[i]) && obj[props[i]] !== undefined) { | ||
StackFrame.prototype = { | ||
getArgs: function () { | ||
getArgs: function() { | ||
return this.args; | ||
}, | ||
setArgs: function (v) { | ||
setArgs: function(v) { | ||
if (Object.prototype.toString.call(v) !== '[object Array]') { | ||
@@ -561,6 +562,6 @@ throw new TypeError('Args must be an Array'); | ||
getEvalOrigin: function () { | ||
getEvalOrigin: function() { | ||
return this.evalOrigin; | ||
}, | ||
setEvalOrigin: function (v) { | ||
setEvalOrigin: function(v) { | ||
if (v instanceof StackFrame) { | ||
@@ -575,3 +576,3 @@ this.evalOrigin = v; | ||
toString: function () { | ||
toString: function() { | ||
var functionName = this.getFunctionName() || '{anonymous}'; | ||
@@ -588,4 +589,4 @@ var args = '(' + (this.getArgs() || []).join(',') + ')'; | ||
StackFrame.prototype['get' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]); | ||
StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function(p) { | ||
return function(v) { | ||
this[p] = Boolean(v); | ||
@@ -598,4 +599,4 @@ }; | ||
StackFrame.prototype['get' + _capitalize(numericProps[j])] = _getter(numericProps[j]); | ||
StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function(p) { | ||
return function(v) { | ||
if (!_isNumber(v)) { | ||
@@ -611,4 +612,4 @@ throw new TypeError(p + ' must be a Number'); | ||
StackFrame.prototype['get' + _capitalize(stringProps[k])] = _getter(stringProps[k]); | ||
StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function(p) { | ||
return function(v) { | ||
this[p] = String(v); | ||
@@ -615,0 +616,0 @@ }; |
@@ -36,3 +36,3 @@ /* | ||
var stackframe = createCommonjsModule(function (module, exports) { | ||
(function (root, factory) { | ||
(function(root, factory) { | ||
'use strict'; | ||
@@ -47,3 +47,3 @@ // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers. | ||
} | ||
}(commonjsGlobal, function () { | ||
}(commonjsGlobal, function() { | ||
'use strict'; | ||
@@ -59,3 +59,3 @@ function _isNumber(n) { | ||
function _getter(p) { | ||
return function () { | ||
return function() { | ||
return this[p]; | ||
@@ -70,5 +70,6 @@ }; | ||
var props = booleanProps.concat(numericProps, stringProps, arrayProps); | ||
function StackFrame(obj) { | ||
if (obj instanceof Object) { | ||
var props = booleanProps.concat(numericProps.concat(stringProps.concat(arrayProps))); | ||
for (var i = 0; i < props.length; i++) { | ||
@@ -83,6 +84,6 @@ if (obj.hasOwnProperty(props[i]) && obj[props[i]] !== undefined) { | ||
StackFrame.prototype = { | ||
getArgs: function () { | ||
getArgs: function() { | ||
return this.args; | ||
}, | ||
setArgs: function (v) { | ||
setArgs: function(v) { | ||
if (Object.prototype.toString.call(v) !== '[object Array]') { | ||
@@ -94,6 +95,6 @@ throw new TypeError('Args must be an Array'); | ||
getEvalOrigin: function () { | ||
getEvalOrigin: function() { | ||
return this.evalOrigin; | ||
}, | ||
setEvalOrigin: function (v) { | ||
setEvalOrigin: function(v) { | ||
if (v instanceof StackFrame) { | ||
@@ -108,3 +109,3 @@ this.evalOrigin = v; | ||
toString: function () { | ||
toString: function() { | ||
var functionName = this.getFunctionName() || '{anonymous}'; | ||
@@ -121,4 +122,4 @@ var args = '(' + (this.getArgs() || []).join(',') + ')'; | ||
StackFrame.prototype['get' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]); | ||
StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function(p) { | ||
return function(v) { | ||
this[p] = Boolean(v); | ||
@@ -131,4 +132,4 @@ }; | ||
StackFrame.prototype['get' + _capitalize(numericProps[j])] = _getter(numericProps[j]); | ||
StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function(p) { | ||
return function(v) { | ||
if (!_isNumber(v)) { | ||
@@ -144,4 +145,4 @@ throw new TypeError(p + ' must be a Number'); | ||
StackFrame.prototype['get' + _capitalize(stringProps[k])] = _getter(stringProps[k]); | ||
StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function(p) { | ||
return function(v) { | ||
this[p] = String(v); | ||
@@ -148,0 +149,0 @@ }; |
@@ -368,3 +368,3 @@ /* | ||
var stackframe = createCommonjsModule(function (module, exports) { | ||
(function (root, factory) { | ||
(function(root, factory) { | ||
'use strict'; | ||
@@ -379,3 +379,3 @@ // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers. | ||
} | ||
}(commonjsGlobal, function () { | ||
}(commonjsGlobal, function() { | ||
'use strict'; | ||
@@ -391,3 +391,3 @@ function _isNumber(n) { | ||
function _getter(p) { | ||
return function () { | ||
return function() { | ||
return this[p]; | ||
@@ -402,5 +402,6 @@ }; | ||
var props = booleanProps.concat(numericProps, stringProps, arrayProps); | ||
function StackFrame(obj) { | ||
if (obj instanceof Object) { | ||
var props = booleanProps.concat(numericProps.concat(stringProps.concat(arrayProps))); | ||
for (var i = 0; i < props.length; i++) { | ||
@@ -415,6 +416,6 @@ if (obj.hasOwnProperty(props[i]) && obj[props[i]] !== undefined) { | ||
StackFrame.prototype = { | ||
getArgs: function () { | ||
getArgs: function() { | ||
return this.args; | ||
}, | ||
setArgs: function (v) { | ||
setArgs: function(v) { | ||
if (Object.prototype.toString.call(v) !== '[object Array]') { | ||
@@ -426,6 +427,6 @@ throw new TypeError('Args must be an Array'); | ||
getEvalOrigin: function () { | ||
getEvalOrigin: function() { | ||
return this.evalOrigin; | ||
}, | ||
setEvalOrigin: function (v) { | ||
setEvalOrigin: function(v) { | ||
if (v instanceof StackFrame) { | ||
@@ -440,3 +441,3 @@ this.evalOrigin = v; | ||
toString: function () { | ||
toString: function() { | ||
var functionName = this.getFunctionName() || '{anonymous}'; | ||
@@ -453,4 +454,4 @@ var args = '(' + (this.getArgs() || []).join(',') + ')'; | ||
StackFrame.prototype['get' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]); | ||
StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function(p) { | ||
return function(v) { | ||
this[p] = Boolean(v); | ||
@@ -463,4 +464,4 @@ }; | ||
StackFrame.prototype['get' + _capitalize(numericProps[j])] = _getter(numericProps[j]); | ||
StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function(p) { | ||
return function(v) { | ||
if (!_isNumber(v)) { | ||
@@ -476,4 +477,4 @@ throw new TypeError(p + ' must be a Number'); | ||
StackFrame.prototype['get' + _capitalize(stringProps[k])] = _getter(stringProps[k]); | ||
StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function(p) { | ||
return function(v) { | ||
this[p] = String(v); | ||
@@ -786,2 +787,5 @@ }; | ||
function throwError(message) { | ||
// Collapse any newlines or whitespace into a single space. | ||
message = message.replace(/\s+/g, ' '); | ||
const error = new Error(message); | ||
@@ -797,3 +801,3 @@ const stackFrames = errorStackParser.parse(error); | ||
error.message = `Invalid call to ${stackFrames[2].functionName}() — ` + | ||
message.replace(/\s+/g, ' '); | ||
message; | ||
error.name = stackFrames[1].functionName.replace(/^Object\./, ''); | ||
@@ -800,0 +804,0 @@ } |
@@ -35,3 +35,3 @@ /* | ||
var stackframe = createCommonjsModule(function (module, exports) { | ||
(function (root, factory) { | ||
(function(root, factory) { | ||
'use strict'; | ||
@@ -46,3 +46,3 @@ // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers. | ||
} | ||
}(commonjsGlobal, function () { | ||
}(commonjsGlobal, function() { | ||
'use strict'; | ||
@@ -58,3 +58,3 @@ function _isNumber(n) { | ||
function _getter(p) { | ||
return function () { | ||
return function() { | ||
return this[p]; | ||
@@ -69,5 +69,6 @@ }; | ||
var props = booleanProps.concat(numericProps, stringProps, arrayProps); | ||
function StackFrame(obj) { | ||
if (obj instanceof Object) { | ||
var props = booleanProps.concat(numericProps.concat(stringProps.concat(arrayProps))); | ||
for (var i = 0; i < props.length; i++) { | ||
@@ -82,6 +83,6 @@ if (obj.hasOwnProperty(props[i]) && obj[props[i]] !== undefined) { | ||
StackFrame.prototype = { | ||
getArgs: function () { | ||
getArgs: function() { | ||
return this.args; | ||
}, | ||
setArgs: function (v) { | ||
setArgs: function(v) { | ||
if (Object.prototype.toString.call(v) !== '[object Array]') { | ||
@@ -93,6 +94,6 @@ throw new TypeError('Args must be an Array'); | ||
getEvalOrigin: function () { | ||
getEvalOrigin: function() { | ||
return this.evalOrigin; | ||
}, | ||
setEvalOrigin: function (v) { | ||
setEvalOrigin: function(v) { | ||
if (v instanceof StackFrame) { | ||
@@ -107,3 +108,3 @@ this.evalOrigin = v; | ||
toString: function () { | ||
toString: function() { | ||
var functionName = this.getFunctionName() || '{anonymous}'; | ||
@@ -120,4 +121,4 @@ var args = '(' + (this.getArgs() || []).join(',') + ')'; | ||
StackFrame.prototype['get' + _capitalize(booleanProps[i])] = _getter(booleanProps[i]); | ||
StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(booleanProps[i])] = (function(p) { | ||
return function(v) { | ||
this[p] = Boolean(v); | ||
@@ -130,4 +131,4 @@ }; | ||
StackFrame.prototype['get' + _capitalize(numericProps[j])] = _getter(numericProps[j]); | ||
StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(numericProps[j])] = (function(p) { | ||
return function(v) { | ||
if (!_isNumber(v)) { | ||
@@ -143,4 +144,4 @@ throw new TypeError(p + ' must be a Number'); | ||
StackFrame.prototype['get' + _capitalize(stringProps[k])] = _getter(stringProps[k]); | ||
StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function (p) { | ||
return function (v) { | ||
StackFrame.prototype['set' + _capitalize(stringProps[k])] = (function(p) { | ||
return function(v) { | ||
this[p] = String(v); | ||
@@ -147,0 +148,0 @@ }; |
{ | ||
"name": "sw-background-sync-queue", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "Queues failed requests and uses the Background Sync API to replay those requests at a later time when the network state has changed.", | ||
@@ -13,3 +13,2 @@ "keywords": [ | ||
"files": [ | ||
"src", | ||
"build" | ||
@@ -25,5 +24,4 @@ ], | ||
"homepage": "https://github.com/GoogleChrome/sw-helpers/tree/master/packages/sw-background-sync-queue", | ||
"main": "build/background-sync-queue.min.js", | ||
"module": "build/background-sync-queue.min.mjs", | ||
"jsnext:main": "build/background-sync-queue.min.mjs" | ||
"main": "build/importScripts/sw-background-sync-queue.prod.v0.0.21.js", | ||
"module": "build/modules/sw-background-sync-queue.prod.v0.0.21.mjs" | ||
} |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
6
1000792
29
2
80
8697