New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

select-dom

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

select-dom - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

12

index.js

@@ -12,3 +12,3 @@ // Types inspired by

}
return ((baseElement !== null && baseElement !== void 0 ? baseElement : document)).querySelector(String(selectors));
return (baseElement !== null && baseElement !== void 0 ? baseElement : document).querySelector(String(selectors));
}

@@ -20,3 +20,3 @@ function selectLast(selectors, baseElement) {

}
const all = ((baseElement !== null && baseElement !== void 0 ? baseElement : document)).querySelectorAll(String(selectors));
const all = (baseElement !== null && baseElement !== void 0 ? baseElement : document).querySelectorAll(String(selectors));
return all[all.length - 1];

@@ -42,3 +42,3 @@ }

if (!baseElements || isQueryable(baseElements)) {
const elements = ((baseElements !== null && baseElements !== void 0 ? baseElements : document)).querySelectorAll(String(selectors));
const elements = (baseElements !== null && baseElements !== void 0 ? baseElements : document).querySelectorAll(String(selectors));
return Array.apply(null, elements);

@@ -54,7 +54,7 @@ }

// Preserves IE11 support and performs 3x better than `...all` in Safari
const arr = [];
const array = [];
all.forEach(function (v) {
arr.push(v);
array.push(v);
});
return arr;
return array;
}

@@ -61,0 +61,0 @@ select.last = selectLast;

{
"name": "select-dom",
"version": "6.0.0",
"version": "6.0.1",
"description": "Extra lightweight DOM selector helper",

@@ -18,2 +18,5 @@ "keywords": [

"author": "Federico Brigante <opensource@bfred.it> (bfred.it)",
"type": "module",
"main": "index.js",
"module": "index.js",
"files": [

@@ -23,6 +26,5 @@ "index.js",

],
"module": "index.js",
"scripts": {
"build": "tsc",
"prepublish-only": "tsc",
"build": "tsc --sourceMap false",
"prepublishOnly": "tsc",
"test": "tsc && tsd && xo && browserify -p esmify test.js | tape-run",

@@ -35,18 +37,4 @@ "watch": "tsc --watch"

],
"extensions": [
"ts"
],
"overrides": [
{
"files": "**/*.ts",
"extends": "xo-typescript",
"parserOptions": {
"project": "./tsconfig.xo.json"
},
"rules": {
"@typescript-eslint/prefer-for-of": "off"
}
}
],
"rules": {
"@typescript-eslint/prefer-for-of": "off",
"valid-jsdoc": "off",

@@ -59,15 +47,11 @@ "prefer-spread": "off",

"devDependencies": {
"@sindresorhus/tsconfig": "^0.6.0",
"@typescript-eslint/eslint-plugin": "^2.11.0",
"@typescript-eslint/parser": "^2.11.0",
"browserify": "^16.5.0",
"eslint-config-xo-typescript": "^0.23.0",
"@sindresorhus/tsconfig": "^0.7.0",
"browserify": "^16.5.1",
"esmify": "^2.1.1",
"tape": "^4.11.0",
"tape-run": "^6.0.1",
"tape": "^4.13.2",
"tape-run": "^7.0.0",
"tsd": "^0.11.0",
"typescript": "^3.7.3",
"xo": "^0.25.3"
},
"type": "module"
"typescript": "^3.8.3",
"xo": "^0.28.3"
}
}
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