Socket
Socket
Sign inDemoInstall

data-set

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-set - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

14

package.json
{
"name": "data-set",
"version": "3.0.0",
"version": "3.1.0",
"description": "Element#dataset abstraction",

@@ -20,10 +20,12 @@ "keywords": [],

"dependencies": {
"individual": "~0.1.1",
"individual": "^2.0.0",
"weakmap-shim": "~1.0.0"
},
"devDependencies": {
"tape": "~2.12.0",
"element": "~0.1.4",
"global": "^4.2.1",
"hyperscript": "git://github.com/dominictarr/hyperscript#data-set-bump",
"global": "~2.0.7",
"element": "~0.1.4"
"run-browser": "^1.3.1",
"tap-spec": "^0.1.9",
"tape": "~2.12.0"
},

@@ -37,4 +39,4 @@ "licenses": [

"scripts": {
"test": "tap ./test"
"test": "run-browser test.js -b | tap-spec"
}
}

@@ -0,8 +1,7 @@

var DataSet = require("./index.js")
var test = require("tape")
var h = require("hyperscript")
var document = require("global/document")
var element = require("element")
var DataSet = require("./index.js")
test("can fetch records out of DS", function (assert) {

@@ -21,15 +20,3 @@ var elem = document.body

test("can fetch pre existing records out of other DS", function (assert) {
var elem = h("div", {
"data-foo": "bar",
"data-baz": { "foobaz": "oh yeah" }
})
var ds = DataSet(elem)
assert.equal(ds.foo, "bar")
assert.deepEqual(ds.baz, { "foobaz": "oh yeah" })
assert.end()
})
test("can fetch pre existing records out of DOM", function (assert) {

@@ -46,5 +33,4 @@ var elem = element("<div data-foo='bar' data-baz='oh yeah'></div>")

test("setting dash names", function (assert) {
var elem = h("div", {
"data-foo-bar": "baz"
})
var elem = document.createElement("div")
DataSet(elem)["foo-bar"] = "baz"
var elem2 = element("<div data-foo-bar='baz'></div>")

@@ -51,0 +37,0 @@

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