Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsonld

Package Overview
Dependencies
Maintainers
3
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonld - npm Package Compare versions

Comparing version 0.0.60 to 0.0.61

js/Promise.js

2

package.json
{
"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

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