Comparing version 3.0.0 to 3.1.0
{ | ||
"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" | ||
} | ||
} |
22
test.js
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4818
6
57
+ Addedindividual@2.0.0(transitive)
- Removedglobal@0.1.5(transitive)
- Removedindividual@0.1.1(transitive)
Updatedindividual@^2.0.0