Comparing version 2.0.0 to 2.0.1
@@ -61,7 +61,9 @@ module.exports = callpack; | ||
Object.defineProperty(Pack.prototype, Symbol.toStringTag, { | ||
configurable: true, | ||
enumerable: false, | ||
value: 'Pack', | ||
writable: false | ||
}); | ||
if (typeof Symbol.toStringTag !== 'undefined') { | ||
Object.defineProperty(Pack.prototype, Symbol.toStringTag, { | ||
configurable: true, | ||
enumerable: false, | ||
value: 'Pack', | ||
writable: false | ||
}); | ||
} |
{ | ||
"name": "callpack", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Pack multi-value callback results into a single argument.", | ||
@@ -5,0 +5,0 @@ "main": "callpack.js", |
@@ -81,4 +81,9 @@ var test = require('tape'); | ||
t.equal(Object.prototype.toString.call(pack), '[object Pack]', 'has a unique toString tag'); | ||
if (typeof Symbol.toStringTag !== 'undefined') { | ||
t.equal(Object.prototype.toString.call(pack), '[object Pack]', 'has a unique toString tag'); | ||
} else { | ||
t.pass('class is defined'); | ||
} | ||
t.end(); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8225
136