New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jsonld

Package Overview
Dependencies
Maintainers
4
Versions
215
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.4.11 to 0.4.12

1

bower.json
{
"name": "jsonld",
"version": "0.4.11",
"description": "A JSON-LD Processor and API implementation in JavaScript.",

@@ -5,0 +4,0 @@ "authors": [

46

CHANGELOG.md
# jsonld ChangeLog
## [Unreleased]
## 0.4.12 - 2017-04-24
## [0.4.11] - 2016-04-24
### Fixed
- Fix `promises.compact` API when called with only 2 parameters.
## 0.4.11 - 2016-04-24
### Changed
- Add optimization for finding best CURIE matches.
## [0.4.10] - 2016-04-24
## 0.4.10 - 2016-04-24

@@ -15,3 +18,3 @@ ### Changed

## [0.4.9] - 2016-04-23
## 0.4.9 - 2016-04-23

@@ -21,3 +24,3 @@ ### Changed

## [0.4.8] - 2016-04-14
## 0.4.8 - 2016-04-14

@@ -27,3 +30,3 @@ ### Fixed

## [0.4.7] - 2016-04-14
## 0.4.7 - 2016-04-14

@@ -33,3 +36,3 @@ ### Fixed

## [0.4.6] - 2016-03-02
## 0.4.6 - 2016-03-02

@@ -42,3 +45,3 @@ ### Added

## [0.4.5] - 2016-01-19
## 0.4.5 - 2016-01-19

@@ -49,3 +52,3 @@ ### Fixed

## [0.4.4] - 2016-01-08
## 0.4.4 - 2016-01-08

@@ -56,3 +59,3 @@ ### Fixed

## [0.4.3] - 2016-01-05
## 0.4.3 - 2016-01-05

@@ -62,3 +65,3 @@ ### Fixed

## [0.4.2] - 2015-10-12
## 0.4.2 - 2015-10-12

@@ -76,3 +79,3 @@ ### Added

## [0.4.1] - 2015-09-12
## 0.4.1 - 2015-09-12

@@ -82,3 +85,3 @@ ### Changed

## [0.4.0] - 2015-09-12
## 0.4.0 - 2015-09-12

@@ -95,3 +98,3 @@ ### Breaking Changes

## [0.3.26] - 2015-09-01
## 0.3.26 - 2015-09-01

@@ -104,16 +107,1 @@ ## Before 0.3.26

[jsonld-request]: https://github.com/digitalbazaar/jsonld-request
[Unreleased]: https://github.com/digitalbazaar/jsonld.js/compare/0.4.11...HEAD
[0.4.11]: https://github.com/digitalbazaar/jsonld.js/compare/0.4.10...0.4.11
[0.4.10]: https://github.com/digitalbazaar/jsonld.js/compare/0.4.9...0.4.10
[0.4.9]: https://github.com/digitalbazaar/jsonld.js/compare/0.4.8...0.4.9
[0.4.8]: https://github.com/digitalbazaar/jsonld.js/compare/0.4.7...0.4.8
[0.4.7]: https://github.com/digitalbazaar/jsonld.js/compare/0.4.6...0.4.7
[0.4.6]: https://github.com/digitalbazaar/jsonld.js/compare/0.4.5...0.4.6
[0.4.5]: https://github.com/digitalbazaar/jsonld.js/compare/0.4.4...0.4.5
[0.4.4]: https://github.com/digitalbazaar/jsonld.js/compare/0.4.3...0.4.4
[0.4.3]: https://github.com/digitalbazaar/jsonld.js/compare/0.4.2...0.4.3
[0.4.2]: https://github.com/digitalbazaar/jsonld.js/compare/0.4.1...0.4.2
[0.4.1]: https://github.com/digitalbazaar/jsonld.js/compare/0.4.0...0.4.1
[0.4.0]: https://github.com/digitalbazaar/jsonld.js/compare/0.3.26...0.4.0
[0.3.26]: https://github.com/digitalbazaar/jsonld.js/compare/0.3.25...0.3.26
{
"name": "jsonld",
"version": "0.4.11",
"version": "0.4.12",
"description": "A JSON-LD Processor and API implementation in JavaScript.",

@@ -34,3 +34,3 @@ "homepage": "http://github.com/digitalbazaar/jsonld.js",

"devDependencies": {
"chai": "^3.4.1",
"chai": "^3.5.0",
"commander": "^2.8.0",

@@ -63,2 +63,3 @@ "cors": "^2.7.1",

"coverage": "make test-coverage",
"coverage-report": "make test-coverage-report",
"jscs": "jscs js/jsonld.js tests/*.js",

@@ -65,0 +66,0 @@ "jshint": "jshint js/jsonld.js tests/*.js"

@@ -19,5 +19,8 @@ /**

var options = {};
it('loading should work', function(callback) {
it('loading should work', function(done) {
jsonld.useDocumentLoader(documentLoaderType);
jsonld.expand('http://schema.org/', callback);
jsonld.expand('http://schema.org/', function(err, expanded) {
assert.ifError(err);
done();
});
});

@@ -24,0 +27,0 @@ });

@@ -98,2 +98,5 @@ /**

'jld:CompactTest': {
skip: {
processingMode: ['json-ld-1.1']
},
fn: 'compact',

@@ -108,2 +111,5 @@ params: [

'jld:ExpandTest': {
skip: {
processingMode: ['json-ld-1.1']
},
fn: 'expand',

@@ -117,2 +123,5 @@ params: [

'jld:FlattenTest': {
skip: {
processingMode: ['json-ld-1.1']
},
fn: 'flatten',

@@ -127,2 +136,5 @@ params: [

'jld:FrameTest': {
skip: {
type: true
},
fn: 'frame',

@@ -153,2 +165,5 @@ params: [

'jld:ToRDFTest': {
skip: {
regex: [/RFC3986/]
},
fn: 'toRDF',

@@ -304,12 +319,2 @@ params: [

function addTest(manifest, test) {
// skip unknown and explicitly skipped test types
var testTypes = Object.keys(TEST_TYPES);
if(!isJsonLdType(test, testTypes) || isJsonLdType(test, SKIP_TESTS)) {
var type = [].concat(
getJsonLdValues(test, '@type'),
getJsonLdValues(test, 'type')
);
console.log('Skipping test "' + test.name + '" of type: ' + type);
}
// expand @id and input base

@@ -326,4 +331,46 @@ var test_id = test['@id'] || test['id'];

it(description, function(done) {
var self = this;
this.timeout(5000);
var testInfo = TEST_TYPES[getJsonLdTestType(test)];
// skip unknown and explicitly skipped test types
var testTypes = Object.keys(TEST_TYPES);
if(!isJsonLdType(test, testTypes) || isJsonLdType(test, SKIP_TESTS)) {
var type = [].concat(
getJsonLdValues(test, '@type'),
getJsonLdValues(test, 'type')
);
//console.log('Skipping test "' + test.name + '" of type: ' + type);
self.skip();
}
if(testInfo.skip && testInfo.skip.type) {
//console.log('Skipping test "' + test.name + '" of type: ' + type);
self.skip();
}
if(testInfo.skip && testInfo.skip.regex) {
testInfo.skip.regex.forEach(function(re) {
if(re.test(description)) {
//console.log('Skipping test "' + test.name + '" of description: ' + description);
self.skip();
}
});
}
var options = getJsonLdValues(test, 'option');
options.forEach(function(opt) {
var processingModes = getJsonLdValues(opt, 'processingMode');
processingModes.forEach(function(pm) {
var skipModes = [];
if(testInfo.skip && testInfo.skip.processingMode) {
skipModes = testInfo.skip.processingMode;
}
if(skipModes.indexOf(pm) !== -1) {
//console.log('Skipping test "' + test.name + '" of processing mode: ' + pm);
self.skip();
}
});
});
var fn = testInfo.fn;

@@ -330,0 +377,0 @@ var params = testInfo.params;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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