Socket
Socket
Sign inDemoInstall

is-typed-array

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-typed-array - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

52

.jscs.json

@@ -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
}

@@ -1,3 +0,10 @@

1.0.4 / 2015-10-13
1.0.4 / 2016-03-19
=================
* [Fix] `Symbol.toStringTag` is on the super-`[[Prototype]]` of Float32Array, not the `[[Prototype]]` (#3)
* [Tests] up to `node` `v5.9`, `v4.4`
* [Tests] use pretest/posttest for linting/security
* [Dev Deps] update `tape`, `jscs`, `nsp`, `eslint`, `@ljharb/eslint-config`, `semver`, `is-callable`
1.0.3 / 2015-10-13
=================
* [Deps] Add missing `foreach` dependency (#1)

@@ -4,0 +11,0 @@

@@ -26,4 +26,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;
});

@@ -38,3 +46,3 @@ }

anyTrue = getter.call(value) === typedArray;
} catch (e) {/**/}
} catch (e) { /**/ }
}

@@ -41,0 +49,0 @@ });

33

package.json
{
"name": "is-typed-array",
"version": "1.0.3",
"author": "Jordan Harband",
"version": "1.0.4",
"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,11 +20,13 @@ ],

"scripts": {
"test": "npm run lint && npm run tests-only && npm run security",
"pretest": "npm run --silent lint",
"test": "npm run 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",
"eccheck": "editorconfig-tools check *.js **/*.js > /dev/null",
"security": "nsp package"
"security": "nsp check"
},

@@ -54,14 +61,14 @@ "repository": {

"devDependencies": {
"tape": "^4.2.1",
"tape": "^4.5.1",
"covert": "^1.1.0",
"jscs": "^2.2.1",
"jscs": "^2.11.0",
"editorconfig-tools": "^0.1.1",
"nsp": "^1.1.0",
"eslint": "^1.6.0",
"@ljharb/eslint-config": "^1.3.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",
"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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc