Comparing version 0.3.0 to 0.3.1
10
index.js
@@ -100,3 +100,3 @@ | ||
this.type = "list"; | ||
this .linkKey = it; | ||
this.linkKey = it; | ||
return this; | ||
@@ -180,2 +180,7 @@ }; | ||
subSteps(SpecificationCtx, ["superseded", "supersedes", "versions"]); | ||
SpecificationCtx.prototype.latest = function () { | ||
this.steps.push("versions"); | ||
this.steps.push("latest"); | ||
return this; | ||
}; | ||
@@ -191,3 +196,4 @@ // Version-specific Ctx | ||
// w3c.specification("SVG").superseded().fetch() | ||
// w3c.specification("SVG").supersedes.fetch() | ||
// w3c.specification("SVG").supersedes().fetch() | ||
// w3c.specification("SVG").latest().fetch() | ||
// w3c.specification("SVG").versions().fetch() | ||
@@ -194,0 +200,0 @@ // w3c.specification("SVG").version("19991203").fetch() |
{ | ||
"name": "w3capi", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/darobin/w3capi.git", |
@@ -82,2 +82,3 @@ | ||
w3c.specification("SVG").version("19991203").next().fetch() | ||
w3c.specification("SVG11").latest().fetch() | ||
w3c.specification("SVG").superseded().fetch() | ||
@@ -90,3 +91,4 @@ w3c.specification("SVG11").supersedes().fetch() | ||
it), as well as which versions were the previous or next. You can know which specification | ||
supersedes or was superseded by which other. | ||
supersedes or was superseded by which other. You can use `latest()` to get the latest version | ||
without having to list them. | ||
@@ -93,0 +95,0 @@ ### Groups |
@@ -106,2 +106,5 @@ | ||
}); | ||
it("have latest", function (done) { | ||
w3c.specification("SVG11").latest().fetch(itemChecker(done, "date", "2011-08-16")); | ||
}); | ||
}); | ||
@@ -108,0 +111,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
19145
326
157