Socket
Socket
Sign inDemoInstall

elem-dataset

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

dist/index.js

15

package.json
{
"name": "elem-dataset",
"version": "1.0.0",
"version": "1.1.0",
"description": "Simple HTMLElement.dataset ponyfill",

@@ -11,4 +11,3 @@ "license": "MIT",

},
"main": "index.js",
"jsnext:main": "index.js",
"main": "dist/index.js",
"keywords": [

@@ -29,3 +28,3 @@ "html",

"build": "npm test && npm run bundle && npm run minify",
"bundle": "node_modules/.bin/babel index.js > dist/index.js",
"bundle": "node_modules/.bin/rollup -c",
"minify": "node_modules/.bin/uglifyjs dist/index.js > dist/index.min.js -m",

@@ -36,5 +35,7 @@ "test": "xo && ava"

"ava": "*",
"babel-cli": "^6.16.0",
"babel-preset-es2015": "^6.14.0",
"babel-preset-es2015-rollup": "^1.2.0",
"jsdom": "^9.6.0",
"rollup": "^0.36.1",
"rollup-plugin-babel": "^2.6.1",
"rollup-plugin-commonjs": "^5.0.4",
"uglify-js": "^2.7.3",

@@ -45,3 +46,3 @@ "xo": "*"

"presets": [
"es2015"
"es2015-rollup"
]

@@ -48,0 +49,0 @@ },

@@ -15,6 +15,6 @@ # elem-dataset

```js
import dataset from 'elem-dataset';
import elemDataset from 'elem-dataset';
const element = document.querySelector('.foo');
const attributes = dataset(element);
const attributes = elemDataset(element);
```

@@ -21,0 +21,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc