which-typed-array
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -12,3 +12,6 @@ { | ||
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"], | ||
"requireCurlyBraces": { | ||
"allExcept": [], | ||
"keywords": ["if", "else", "for", "while", "do", "try", "catch"] | ||
}, | ||
@@ -20,2 +23,3 @@ "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"], | ||
"disallowSpaceBeforeComma": true, | ||
"disallowSpaceAfterComma": false, | ||
"disallowSpaceBeforeSemicolon": true, | ||
@@ -32,3 +36,3 @@ | ||
"requireObjectKeysOnNewLine": true, | ||
"requireObjectKeysOnNewLine": { "allExcept": ["sameLine"] }, | ||
@@ -82,3 +86,3 @@ "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true }, | ||
"requireDotNotation": true, | ||
"requireDotNotation": { "allExcept": ["keywords"] }, | ||
@@ -128,4 +132,44 @@ "requireParenthesesAroundIIFE": true, | ||
"validateOrderInObjectKeys": "asc-natural" | ||
"validateOrderInObjectKeys": "asc-natural", | ||
"disallowIdenticalDestructuringNames": true, | ||
"disallowNestedTernaries": { "maxLevel": 1 }, | ||
"requireSpaceAfterComma": { "allExcept": ["trailing"] }, | ||
"requireAlignedMultilineParams": false, | ||
"requireSpacesInGenerator": { | ||
"afterStar": true | ||
}, | ||
"disallowSpacesInGenerator": { | ||
"beforeStar": true | ||
}, | ||
"disallowVar": false, | ||
"requireArrayDestructuring": false, | ||
"requireEnhancedObjectLiterals": false, | ||
"requireObjectDestructuring": false, | ||
"requireEarlyReturn": false, | ||
"requireCapitalizedConstructorsNew": { | ||
"allExcept": ["Function", "String", "Object", "Symbol", "Number", "Date", "RegExp", "Error", "Boolean", "Array"] | ||
}, | ||
"requireImportAlphabetized": false, | ||
"requireSpaceBeforeObjectValues": true, | ||
"requireSpaceBeforeDestructuredValues": true, | ||
"disallowSpacesInsideTemplateStringPlaceholders": true, | ||
"disallowArrayDestructuringReturn": false, | ||
"requireNewlineBeforeSingleStatementsInIf": false | ||
} | ||
@@ -0,3 +1,11 @@ | ||
1.0.1 / 2016-03-19 | ||
================= | ||
* [Fix] `Symbol.toStringTag` is on the super-[[Prototype]] of Float32Array, not the [[Prototype]] | ||
* [Deps] update `is-typed-array`, `function-bind` | ||
* [Dev Deps] update `tape`, `jscs`, `nsp`, `eslint`, `@ljharb/eslint-config`, `semver`, `is-callable` | ||
* [Tests] up to `node` `v5.9`, `v4.4` | ||
* [Tests] use pretest/posttest for linting/security | ||
1.0.0 / 2015-10-05 | ||
================= | ||
* Initial release. |
12
index.js
@@ -27,4 +27,12 @@ 'use strict'; | ||
var arr = new global[typedArray](); | ||
if (!(Symbol.toStringTag in arr)) { | ||
throw new EvalError('this engine has support for Symbol.toStringTag, but ' + typedArray + ' does not have the property! Please report this.'); | ||
} | ||
var proto = Object.getPrototypeOf(arr); | ||
toStrTags[typedArray] = gOPD(proto, Symbol.toStringTag).get; | ||
var descriptor = gOPD(proto, Symbol.toStringTag); | ||
if (!descriptor) { | ||
var superProto = Object.getPrototypeOf(proto); | ||
descriptor = gOPD(superProto, Symbol.toStringTag); | ||
} | ||
toStrTags[typedArray] = descriptor.get; | ||
}); | ||
@@ -42,3 +50,3 @@ } | ||
} | ||
} catch (e) {/**/} | ||
} catch (e) { /**/ } | ||
} | ||
@@ -45,0 +53,0 @@ }); |
{ | ||
"name": "which-typed-array", | ||
"version": "1.0.0", | ||
"author": "Jordan Harband", | ||
"version": "1.0.1", | ||
"author": { | ||
"name": "Jordan Harband", | ||
"email": "ljharb@gmail.com", | ||
"url": "http://ljharb.codes" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Jordan Harband", | ||
"email": "ljharb@gmail.com" | ||
"email": "ljharb@gmail.com", | ||
"url": "http://ljharb.codes" | ||
} | ||
@@ -15,10 +20,12 @@ ], | ||
"scripts": { | ||
"test": "npm run lint && npm run tests-only && npm run security", | ||
"pretest": "npm run --silent lint", | ||
"test": "npm run --silent tests-only", | ||
"tests-only": "node --es-staging test.js", | ||
"posttest": "npm run --silent security", | ||
"coverage": "covert test.js", | ||
"coverage-quiet": "covert test.js --quiet", | ||
"lint": "npm run jscs && npm run eslint", | ||
"lint": "npm run --silent jscs && npm run --silent eslint", | ||
"jscs": "jscs *.js", | ||
"eslint": "eslint *.js", | ||
"security": "nsp package" | ||
"security": "nsp check" | ||
}, | ||
@@ -50,18 +57,18 @@ "repository": { | ||
"dependencies": { | ||
"function-bind": "^1.0.2", | ||
"is-typed-array": "^1.0.2" | ||
"function-bind": "^1.1.0", | ||
"is-typed-array": "^1.0.4" | ||
}, | ||
"devDependencies": { | ||
"tape": "^4.2.1", | ||
"tape": "^4.5.1", | ||
"covert": "^1.1.0", | ||
"jscs": "^2.2.1", | ||
"nsp": "^1.1.0", | ||
"eslint": "^1.6.0", | ||
"@ljharb/eslint-config": "^1.3.0", | ||
"jscs": "^2.11.0", | ||
"nsp": "^2.2.1", | ||
"eslint": "^2.4.0", | ||
"@ljharb/eslint-config": "^2.1.1", | ||
"make-arrow-function": "^1.1.0", | ||
"make-generator-function": "^1.1.0", | ||
"semver": "^5.0.3", | ||
"semver": "^5.1.0", | ||
"replace": "^0.3.0", | ||
"foreach": "^2.0.5", | ||
"is-callable": "^1.1.0" | ||
"is-callable": "^1.1.3" | ||
}, | ||
@@ -68,0 +75,0 @@ "testling": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
724084
243
Updatedfunction-bind@^1.1.0
Updatedis-typed-array@^1.0.4