Comparing version 0.0.60 to 0.0.61
{ | ||
"name": "jsonld", | ||
"version": "0.0.60", | ||
"version": "0.0.61", | ||
"description": "A JSON-LD Processor and API implementation in JavaScript.", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/digitalbazaar/jsonld.js", |
@@ -17,3 +17,3 @@ /** | ||
var jsonld = require('../' + _jsdir + '/jsonld')(); | ||
require('../' + _jsdir + '/Future'); | ||
require('../' + _jsdir + '/Promise'); | ||
@@ -325,5 +325,5 @@ var JSONLD_TEST_SUITE = '../json-ld.org/test-suite'; | ||
else { | ||
// run with regular and futures API | ||
// run with regular and promises API | ||
_run(manifest, src); | ||
_run_future(manifest, src); | ||
_run_promise(manifest, src); | ||
} | ||
@@ -432,3 +432,3 @@ } | ||
/** | ||
* Run a test using the futures API. | ||
* Run a test using the promises API. | ||
* | ||
@@ -438,3 +438,3 @@ * @param test the test specification object. | ||
*/ | ||
function _run_future(test, src) { | ||
function _run_promise(test, src) { | ||
// read test input files | ||
@@ -456,3 +456,3 @@ var type = test['@type']; | ||
var futures = jsonld.futures(); | ||
var promises = jsonld.promises(); | ||
it(test.name, function(done) { | ||
@@ -467,3 +467,3 @@ if(type.indexOf('jld:ApiErrorTest') !== -1) { | ||
options.format = 'application/nquads'; | ||
futures.normalize(input, options).done(checkResult(expect, done), done); | ||
promises.normalize(input, options).then(checkResult(expect, done), done); | ||
} | ||
@@ -473,3 +473,3 @@ else if(type.indexOf('jld:ExpandTest') !== -1) { | ||
var expect = _readTestJson(dir, test.expect); | ||
futures.expand(input, options).done(checkResult(expect, done), done); | ||
promises.expand(input, options).then(checkResult(expect, done), done); | ||
} | ||
@@ -480,3 +480,3 @@ else if(type.indexOf('jld:CompactTest') !== -1) { | ||
var expect = _readTestJson(dir, test.expect); | ||
futures.compact(input, context, options).done( | ||
promises.compact(input, context, options).then( | ||
checkResult(expect, done), done); | ||
@@ -487,3 +487,3 @@ } | ||
var expect = _readTestJson(dir, test.expect); | ||
futures.flatten(input, null, options).done( | ||
promises.flatten(input, null, options).then( | ||
checkResult(expect, done), done); | ||
@@ -495,3 +495,3 @@ } | ||
var expect = _readTestJson(dir, test.expect); | ||
futures.frame(input, frame, options).done( | ||
promises.frame(input, frame, options).then( | ||
checkResult(expect, done), done); | ||
@@ -502,3 +502,3 @@ } | ||
var expect = _readTestJson(dir, test.expect); | ||
futures.fromRDF(input, options).done( | ||
promises.fromRDF(input, options).then( | ||
checkResult(expect, done), done); | ||
@@ -510,3 +510,3 @@ } | ||
options.format = 'application/nquads'; | ||
futures.toRDF(input, options).done( | ||
promises.toRDF(input, options).then( | ||
checkResult(expect, done), done); | ||
@@ -513,0 +513,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
310071
8695