@recogito/recogito-client-core
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "@recogito/recogito-client-core", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Core functions, classes and components for RecogitoJS", | ||
"sideEffects": false, | ||
"main": "src/index.js", | ||
"scripts": { | ||
"test": "./node_modules/.bin/mocha --require @babel/register", | ||
"build": "webpack --mode=production" | ||
"test": "NODE_ENV=test ./node_modules/.bin/mocha --require @babel/register" | ||
}, | ||
@@ -28,30 +28,16 @@ "repository": { | ||
"@babel/preset-env": "^7.6.2", | ||
"@babel/preset-react": "^7.0.0", | ||
"@babel/register": "^7.9.0", | ||
"babel-loader": "^8.0.6", | ||
"chai": "^4.2.0", | ||
"css-loader": "^5.2.4", | ||
"mocha": "^7.1.1", | ||
"node-forge": ">=0.10.0", | ||
"node-sass": "^4.14.1", | ||
"sass-loader": "^8.0.0", | ||
"serialize-javascript": "^3.1.0", | ||
"style-loader": "^1.0.0", | ||
"webpack": "^4.41.0", | ||
"webpack-cli": "^3.3.9", | ||
"webpack-dev-server": "^3.11.0", | ||
"websocket-extensions": ">=0.1.4" | ||
"mocha": "^7.1.1" | ||
}, | ||
"dependencies": { | ||
"downshift": "^5.4.6", | ||
"downshift": "^6.1.3", | ||
"fast-deep-equal": "^3.1.3", | ||
"node-polyglot": "^2.4.0", | ||
"preact": "^10.4.1", | ||
"preact": "^10.5.13", | ||
"react-autosize-textarea": "^7.1.0", | ||
"react-select": "^3.1.1", | ||
"react-transition-group": "^4.3.0", | ||
"timeago-react": "^3.0.1", | ||
"tiny-emitter": "^2.1.0", | ||
"uuid": "^8.3.0" | ||
"react-select": "^4.3.1", | ||
"react-transition-group": "^4.4.2", | ||
"timeago-react": "^3.0.2", | ||
"uuid": "^8.3.2" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import * as Polyglot from 'node-polyglot'; | ||
import Polyglot from 'node-polyglot'; | ||
import * as timeago from 'timeago.js'; | ||
@@ -3,0 +3,0 @@ |
@@ -8,2 +8,2 @@ export { default as Editor } from './editor/Editor'; | ||
export * from './Icons'; | ||
export * from './utils'; | ||
export * from './utils'; |
import WebAnnotation from './WebAnnotation'; | ||
import { v4 as uuid } from 'uuid'; | ||
import * as equals from 'fast-deep-equal'; | ||
import equals from 'fast-deep-equal'; | ||
@@ -5,0 +5,0 @@ /** |
import { v4 as uuid } from 'uuid'; | ||
import * as equals from 'fast-deep-equal'; | ||
import equals from 'fast-deep-equal'; | ||
@@ -4,0 +4,0 @@ export default class WebAnnotation { |
@@ -30,2 +30,3 @@ import assert from 'assert'; | ||
describe("#isEqual()", function() { | ||
it("should return true if the other is the same object", () => { | ||
@@ -36,2 +37,3 @@ const a = new WebAnnotation(fixtureAnnotation); | ||
}); | ||
it("should return false if either annotation has no ID set", () => { | ||
@@ -46,25 +48,4 @@ const a = new WebAnnotation({ | ||
}); | ||
it("should return true iff annotation IDs do match", () => { | ||
const a = new WebAnnotation({ | ||
...fixtureAnnotation, | ||
id: "https://www.example.com/anno1" | ||
}); | ||
const b = new WebAnnotation({ | ||
...fixtureAnnotation, | ||
id: "https://www.example.com/anno2" | ||
}); | ||
const c = new WebAnnotation({ | ||
...fixtureAnnotation, | ||
id: "https://www.example.com/anno1", | ||
body: [ | ||
{ | ||
type: "TextualBody", | ||
value: "foobar" | ||
} | ||
] | ||
}); | ||
assert.strictEqual(a.isEqual(b), false); | ||
assert.strictEqual(a.isEqual(c), true); | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
9
5
1
62417
48
1273
+ Added@emotion/babel-plugin@11.13.5(transitive)
+ Added@emotion/cache@11.14.0(transitive)
+ Added@emotion/hash@0.9.2(transitive)
+ Added@emotion/memoize@0.9.0(transitive)
+ Added@emotion/react@11.14.0(transitive)
+ Added@emotion/serialize@1.3.3(transitive)
+ Added@emotion/sheet@1.4.0(transitive)
+ Added@emotion/unitless@0.10.0(transitive)
+ Added@emotion/use-insertion-effect-with-fallbacks@1.2.0(transitive)
+ Added@emotion/utils@1.4.2(transitive)
+ Added@emotion/weak-memoize@0.4.0(transitive)
+ Addedbabel-plugin-macros@3.1.0(transitive)
+ Addedcosmiconfig@7.1.0(transitive)
+ Addeddownshift@6.1.12(transitive)
+ Addedescape-string-regexp@4.0.0(transitive)
+ Addedhoist-non-react-statics@3.3.2(transitive)
+ Addedreact-is@17.0.2(transitive)
+ Addedreact-select@4.3.1(transitive)
+ Addedstylis@4.2.0(transitive)
+ Addedtslib@2.8.1(transitive)
- Removedtiny-emitter@^2.1.0
- Removed@emotion/cache@10.0.29(transitive)
- Removed@emotion/core@10.3.1(transitive)
- Removed@emotion/css@10.0.27(transitive)
- Removed@emotion/hash@0.8.0(transitive)
- Removed@emotion/memoize@0.7.4(transitive)
- Removed@emotion/serialize@0.11.16(transitive)
- Removed@emotion/sheet@0.9.4(transitive)
- Removed@emotion/stylis@0.8.5(transitive)
- Removed@emotion/unitless@0.7.5(transitive)
- Removed@emotion/utils@0.11.3(transitive)
- Removed@emotion/weak-memoize@0.2.5(transitive)
- Removedbabel-plugin-emotion@10.2.2(transitive)
- Removedbabel-plugin-macros@2.8.0(transitive)
- Removedbabel-plugin-syntax-jsx@6.18.0(transitive)
- Removedcosmiconfig@6.0.0(transitive)
- Removedcsstype@2.6.21(transitive)
- Removeddownshift@5.4.7(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedreact-select@3.2.0(transitive)
- Removedtiny-emitter@2.1.0(transitive)
Updateddownshift@^6.1.3
Updatedpreact@^10.5.13
Updatedreact-select@^4.3.1
Updatedtimeago-react@^3.0.2
Updateduuid@^8.3.2