Comparing version 1.0.1 to 1.1.0
11
index.js
@@ -101,2 +101,5 @@ | ||
util.inherits(obj, Ctx); | ||
var key = "teamcontacts versions successor predecessor".split(" ") | ||
, propKey = "team_contacts version-history successor-version predecessor-version".split(" "); | ||
items.forEach(function (it) { | ||
@@ -106,3 +109,4 @@ obj.prototype[it] = function () { | ||
this.type = "list"; | ||
this.linkKey = it; | ||
var i = key.indexOf(it); | ||
this.linkKey = (i >= 0) ? propKey[i] : it; | ||
return this; | ||
@@ -132,7 +136,6 @@ }; | ||
} | ||
subSteps(DomainCtx, ["activities", "groups", "services", "users"]); | ||
subSteps(DomainCtx, ["groups", "services", "users"]); | ||
// w3c.domain(41481).fetch() | ||
// w3c.domain(41481).groups().fetch() | ||
// w3c.domain(41481).activities().fetch() | ||
// w3c.domain(41481).services().fetch() | ||
@@ -197,3 +200,3 @@ // w3c.domain(41481).users().fetch() | ||
} | ||
subSteps(VersionCtx, ["deliverers", "editors", "next", "previous"]); | ||
subSteps(VersionCtx, ["deliverers", "editors", "successor", "predecessor"]); | ||
SpecificationCtx.prototype.version = idStep(VersionCtx, "versions", true); | ||
@@ -200,0 +203,0 @@ |
{ | ||
"name": "w3capi", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/darobin/w3capi.git", |
@@ -48,5 +48,2 @@ | ||
}); | ||
it("have activities", function (done) { | ||
w3c.domain(41481).activities().fetch(listChecker(done, "Style")); | ||
}); | ||
it("have users", function (done) { | ||
@@ -134,6 +131,6 @@ w3c.domain(41481).users().fetch(listChecker(done, "Philippe Le Hégaret")); | ||
it("have next", function (done) { | ||
w3c.specification("CSS2").version("20070719").next().fetch(listChecker(done, "Candidate Recommendation")); | ||
w3c.specification("CSS2").version("20070719").successor().fetch(listChecker(done, "Candidate Recommendation")); | ||
}); | ||
it("have previous", function (done) { | ||
w3c.specification("CSS2").version("20090423").previous().fetch(listChecker(done, "Candidate Recommendation")); | ||
w3c.specification("CSS2").version("20090423").predecessor().fetch(listChecker(done, "Candidate Recommendation")); | ||
}); | ||
@@ -140,0 +137,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
20073
334