Socket
Socket
Sign inDemoInstall

jskos-tools

Package Overview
Dependencies
0
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.31 to 1.0.32

32

dist/jskos-tools.js
/*!
* jskos-tools v1.0.31
* jskos-tools v1.0.32
* Copyright (c) 2018 Verbundzentrale des GBV (VZG)

@@ -266,3 +266,5 @@ * @license MIT

var keys = [];
for (var key in obj) keys.push(key);
for (var key in obj) {
keys.push(key);
}
return keys;

@@ -288,4 +290,8 @@ };

function objEquiv(a, b) {
if (isUndefinedOrNull(a) || isUndefinedOrNull(b)) return false;
if (a.prototype !== b.prototype) return false;
if (isUndefinedOrNull(a) || isUndefinedOrNull(b)) {
return false;
}
if (a.prototype !== b.prototype) {
return false;
}
if (isArguments(a)) {

@@ -307,7 +313,11 @@ if (!isArguments(b)) {

}
if (ka.length != kb.length) return false;
if (ka.length != kb.length) {
return false;
}
ka.sort();
kb.sort();
for (i = ka.length - 1; i >= 0; i--) {
if (ka[i] != kb[i]) return false;
if (ka[i] != kb[i]) {
return false;
}
}

@@ -326,3 +336,5 @@ for (i = ka.length - 1; i >= 0; i--) {

} else {
if (!deepEqual(a[key], b[key])) return false;
if (!deepEqual(a[key], b[key])) {
return false;
}
}

@@ -839,3 +851,3 @@ }

if (this.uriPattern) {
notation = encodeURI(notation);
notation = encodeURIComponent(notation);
return this.uriPattern.replace(/^\^|\$$/g, "").replace(/\\/g, "").replace(/\(.*\)/, notation);

@@ -1054,3 +1066,5 @@ }

const getAllUris = object => {
if (!object) return [];
if (!object) {
return [];
}
return (object.uri ? [object.uri] : []).concat(object.identifier || []).filter(Boolean);

@@ -1057,0 +1071,0 @@ };

@@ -75,3 +75,3 @@ const regexChars = /[\\^$.*+?()[\]{}|]/g

if (this.uriPattern) {
notation = encodeURI(notation)
notation = encodeURIComponent(notation)
return this.uriPattern

@@ -78,0 +78,0 @@ .replace(/^\^|\$$/g, "").replace(/\\/g, "").replace(/\(.*\)/, notation)

@@ -125,3 +125,5 @@ const _ = require("./utils")

const getAllUris = object => {
if (!object) return []
if (!object) {
return []
}
return (object.uri ? [object.uri] : []).concat(object.identifier || []).filter(Boolean)

@@ -128,0 +130,0 @@ }

@@ -7,3 +7,5 @@ function isEqualWith(a, b, compare) {

var keys = []
for (var key in obj) keys.push(key)
for (var key in obj) {
keys.push(key)
}
return keys

@@ -29,5 +31,8 @@ }

function objEquiv(a, b) {
if (isUndefinedOrNull(a) || isUndefinedOrNull(b))
if (isUndefinedOrNull(a) || isUndefinedOrNull(b)) {
return false
if (a.prototype !== b.prototype) return false
}
if (a.prototype !== b.prototype) {
return false
}
if (isArguments(a)) {

@@ -48,9 +53,11 @@ if (!isArguments(b)) {

}
if (ka.length != kb.length)
if (ka.length != kb.length) {
return false
}
ka.sort()
kb.sort()
for (i = ka.length - 1; i >= 0; i--) {
if (ka[i] != kb[i])
if (ka[i] != kb[i]) {
return false
}
}

@@ -69,3 +76,5 @@ for (i = ka.length - 1; i >= 0; i--) {

} else {
if (!deepEqual(a[key], b[key])) return false
if (!deepEqual(a[key], b[key])) {
return false
}
}

@@ -72,0 +81,0 @@ }

{
"name": "jskos-tools",
"version": "1.0.31",
"version": "1.0.32",
"description": "Tools for working with the JSKOS data format.",

@@ -49,15 +49,15 @@ "homepage": "https://github.com/gbv/jskos-tools",

"devDependencies": {
"@babel/core": "^7.21.8",
"@babel/preset-env": "^7.21.5",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^24.1.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"axios": "^1.4.0",
"clean-jsdoc-theme": "^4.2.7",
"eslint": "^8.40.0",
"eslint-config-gbv": "^1.0.5",
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"axios": "^1.5.1",
"clean-jsdoc-theme": "^4.2.14",
"eslint": "^8.52.0",
"eslint-config-gbv": "^1.1.0",
"glob": "^8.1.0",
"jsdoc": "^4.0.2",
"lint-staged": "^13.2.2",
"lint-staged": "^13.3.0",
"lodash": "^4.17.21",

@@ -67,6 +67,6 @@ "mocha": "^10.2.0",

"pre-commit": "^1.2.2",
"rollup": "^3.21.5",
"rollup-plugin-license": "^3.0.1",
"rollup": "^3.29.4",
"rollup-plugin-license": "^3.2.0",
"wikidata-sdk": "^8.1.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc