@logilab/cwclientlibjs
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -0,1 +1,2 @@ | ||
import 'isomorphic-fetch'; | ||
import { Schema, EntitySchema } from './providers'; | ||
@@ -2,0 +3,0 @@ export declare function applySchema(jsonEntity: any): EntitySchema; |
{ | ||
"name": "@logilab/cwclientlibjs", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "client library for CubicWeb's rqlcontroller API", | ||
@@ -29,21 +29,20 @@ "homepage": "https://forge.extranet.logilab.fr/open-source/cwclientlibjs", | ||
"crypto-js": "^3.1.9-1", | ||
"isomorphic-fetch": "^2.2.1" | ||
"isomorphic-fetch": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.1.7", | ||
"@types/crypto-js": "^3.1.43", | ||
"@types/mocha": "^5.2.7", | ||
"@types/jest": "^27.0.1", | ||
"@typescript-eslint/eslint-plugin": "^2.14.0", | ||
"@typescript-eslint/parser": "^2.14.0", | ||
"babel-eslint": "^10.0.3", | ||
"chai": "^4.2.0", | ||
"eslint": "^6.8.0", | ||
"eslint": "^7.32.0", | ||
"eslint-plugin-import": "^2.19.1", | ||
"mocha": "^6.2.0", | ||
"jest": "^27.0.6", | ||
"prettier": "^1.19.1", | ||
"source-map-loader": "^0.2.4", | ||
"ts-jest": "^27.0.5", | ||
"ts-loader": "^9.1.2", | ||
"ts-node": "^8.3.0", | ||
"typescript": "^3.5.3", | ||
"typescript-formatter": "^7.2.2", | ||
"web-ext": "^6.3.0", | ||
"webpack": "^5.0.0", | ||
@@ -53,6 +52,6 @@ "webpack-cli": "^4.0.0" | ||
"scripts": { | ||
"format": "prettier --check ./**/*.{jsx,tsx,ts,js,css}", | ||
"format": "prettier --check *.js src/*.{jsx,tsx,ts,js,css}", | ||
"build": "webpack --mode=development", | ||
"build:watch": "webpack --watch --mode=development", | ||
"test": "mocha --reporter spec --require ts-node/register src/**/*.spec.ts", | ||
"test": "jest", | ||
"lint": "tsc --noEmit && eslint --ext .tsx,.ts,.js,.jsx src", | ||
@@ -59,0 +58,0 @@ "prepublishOnly": "webpack --mode=production" |
@@ -48,3 +48,4 @@ # cwclientlibjs - client library for CubicWeb's rqlcontroller | ||
(toSigningClient()) after a doLogin() operation. It requires that the CubicWeb | ||
user has at least an enabled token linked to his/her account. | ||
user has at least an enabled token linked to his/her account. The CSRF token | ||
will be included if `allowsCrossOrigin` is false (the default). | ||
@@ -300,4 +301,27 @@ ```javascript | ||
Running the test suite requires nodejs, mocha and xhr2. | ||
The tests relies on an instance with the `test-server` cube to run. | ||
The Dockerfile located in `test-server` creates an image with an instance ready for | ||
use. Building it is as simple as: | ||
```bash | ||
docker build -t cw-test-server . | ||
``` | ||
You can then run the instance using `docker run`: | ||
```bash | ||
docker run -p 8080:8080 cw-test-server | ||
``` | ||
Once the instance is running, launch the tests: | ||
```bash | ||
npm run test | ||
``` | ||
By default the test instance is running on "http://localhost:8080". If you need | ||
to start it on a different host/port, use the `CW_BASE_URL` environment | ||
variable. | ||
## Known issues | ||
@@ -304,0 +328,0 @@ |
Sorry, the diff of this file is too big to display
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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
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
17
19
331
0
1524357
1637
+ Addedisomorphic-fetch@3.0.0(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removedencoding@0.1.13(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisomorphic-fetch@2.2.1(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedsafer-buffer@2.1.2(transitive)
Updatedisomorphic-fetch@^3.0.0