cassproject 1.5.29 → 1.5.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -39,7 +39,7 @@ Development unit tests presume you have a CaSS Repository running on `localhost:
39
39
  * Increment version number in package.json and yuidoc.json.
40
40
  * Update changelog.
41
41
  * `npm install`
42
- * `npm audit` and fix any audit issues.
42
+ * `npm audit --production` and fix any audit issues.
43
43
  * `npm test` - Must not fail any tests.
44
44
  * Document code coverage output by the previous step.
45
45
  * Commit changes to GitHub.
@@ -48,6 +48,10 @@ Development unit tests presume you have a CaSS Repository running on `localhost:
48
48
 
49
49
  # Changelog
50
50
 
51
+ ## 1.5.30
52
+ * Library updates.
53
+ * Using less memory for keys in decryption cache.
54
+
51
55
  ## 1.5.28
52
56
  * Library updates.
53
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cassproject",
3
- "version": "1.5.29",
3
+ "version": "1.5.30",
4
4
  "description": "Competency and Skills Service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,9 +9,9 @@
9
9
  "multitest": "concurrently --kill-others --kill-others-on-fail \"npm run test15\" \"npm run test14\" \"npm run test13\" \"npm run test12\"",
10
10
  "testCassTest": "npm run testkill && docker run -d --name cass-test -p80:80 -e CASS_LOOPBACK cass-test && wait-on http://localhost/api/ping && npm run testNode18 && npm run testNode18Fips && npm run testNode16 && npm run testNode15 && npm run testNode14 && npm run testNode13 && npm run testNode12 && npm run testCypressEdge && npm run testCypress && npm run testkill",
11
11
  "testDevHttps": "npm run testkill && docker run -d --name cass-test -p443:80 -e CASS_LOOPBACK -e HTTPS=true cassproject/cass:dev && wait-on https://localhost/api/ping && npm run testNode18HttpsFips && npm run testNode18Https && npm run testNode16Https && npm run testNode15Https && npm run testNode14Https && npm run testNode13Https && npm run testNode12Https && npm run testCypressEdgeHttps && npm run testCypressHttps",
12
- "test15Https": "npm run testkill && docker run -d --name cass-test -p443:443 -e CASS_LOOPBACK -e HTTPS=true cassproject/cass:1.5.28 && wait-on https://localhost/api/ping && concurrently --kill-others-on-fail \"npm run testCypressHttps\" \"npm run testNode18HttpsFips\" \"npm run testNode18Https\" \"npm run testNode16Https\" && npm run testkill",
13
- "test15Https11": "npm run testkill && docker run -d --name cass-test -p443:443 -e CASS_LOOPBACK -e HTTPS=true -e HTTP2=false cassproject/cass:1.5.28 && wait-on https://localhost/api/ping && concurrently --kill-others-on-fail \"npm run testCypressHttps\" \"npm run testNode18HttpsFips\" \"npm run testNode18Https\" \"npm run testNode16Https\" && npm run testkill",
14
- "test15": "export CASS_LOOPBACK=http://localhost/api/|| set CASS_LOOPBACK=http://localhost/api/&& npm run testkill15 && docker run -d -e CASS_LOOPBACK --name cass-test15 -p80:80 cassproject/cass:1.5.28 && wait-on http://localhost/api/ping && concurrently --kill-others-on-fail \"npm run testCypress\" \"npm run testNode18\" \"npm run testNode18Fips\" \"npm run testNode16\" && npm run testkill15",
12
+ "test15Https": "npm run testkill && docker run -d --name cass-test -p443:443 -e CASS_LOOPBACK -e HTTPS=true cassproject/cass:1.5.29 && wait-on https://localhost/api/ping && concurrently --kill-others-on-fail \"npm run testCypressHttps\" \"npm run testNode18Https\" \"npm run testNode16Https\" && npm run testkill",
13
+ "test15Https11": "npm run testkill && docker run -d --name cass-test -p443:443 -e CASS_LOOPBACK -e HTTPS=true -e HTTP2=false cassproject/cass:1.5.29 && wait-on https://localhost/api/ping && concurrently --kill-others-on-fail \"npm run testCypressHttps\" \"npm run testNode18Https\" \"npm run testNode16Https\" && npm run testkill",
14
+ "test15": "export CASS_LOOPBACK=http://localhost/api/|| set CASS_LOOPBACK=http://localhost/api/&& npm run testkill15 && docker run -d -e CASS_LOOPBACK --name cass-test15 -p80:80 cassproject/cass:1.5.29 && wait-on http://localhost/api/ping && concurrently --kill-others-on-fail \"npm run testCypress\" \"npm run testNode18\" \"npm run testNode16\" && npm run testkill15",
15
15
  "test14": "npm run testkill14 && docker run -d -e CASS_LOOPBACK --name cass-test14 -p80:80 cassproject/cass:1.4.4 && wait-on http://localhost/api/ping && concurrently --kill-others-on-fail \"npm run testCypress\" \"npm run testNode16\" && npm run testkill14",
16
16
  "test13": "npm run testkill13 && docker run -d -e CASS_LOOPBACK --name cass-test13 -p80:80 cassproject/cass:1.3.18 && wait-on http://localhost/api/ping && concurrently --kill-others-on-fail \"npm run testCypress\" \"npm run testNode16\" && npm run testkill13",
17
17
  "test12": "npm run testkill12 && docker run -d -e CASS_LOOPBACK --name cass-test12 -p80:80 cassproject/cass:1.2.44 && wait-on http://localhost/api/ping && concurrently --kill-others-on-fail \"npm run testCypress\" \"npm run testNode16\" && npm run testkill12",
@@ -99,12 +99,12 @@
99
99
  "forge": "^2.3.0",
100
100
  "form-data": "^4.0.0",
101
101
  "http2-wrapper": "^2.2.0",
102
- "jsonld": "^8.1.1",
102
+ "jsonld": "^8.2.0",
103
103
  "node-forge": "^1.3.1",
104
104
  "papaparse": "^5.4.1",
105
105
  "pem-jwk": "^2.0.0",
106
106
  "promise-worker": "^2.0.1",
107
- "rdf-canonize": "^3.3.0",
107
+ "rdf-canonize": "^3.4.0",
108
108
  "web-worker": "^1.2.0"
109
109
  },
110
110
  "files": [
@@ -129,24 +129,24 @@
129
129
  },
130
130
  "homepage": "https://github.com/cassproject/cass-npm#readme",
131
131
  "devDependencies": {
132
- "@babel/core": "^7.21.8",
133
- "@babel/preset-env": "^7.21.5",
132
+ "@babel/core": "^7.22.5",
133
+ "@babel/preset-env": "^7.22.5",
134
134
  "@cypress/browserify-preprocessor": "^3.0.2",
135
135
  "@cypress/vite-dev-server": "^5.0.5",
136
136
  "@cypress/webpack-preprocessor": "^5.17.1",
137
137
  "babel-eslint": "^10.1.0",
138
138
  "babel-plugin-transform-remove-strict-mode": "^0.0.2",
139
139
  "chai": "^4.3.7",
140
- "concurrently": "^8.0.1",
140
+ "concurrently": "^8.2.0",
141
141
  "convert-hrtime": "^5.0.0",
142
- "cypress": "^12.11.0",
143
- "eslint": "^8.39.0",
142
+ "cypress": "^12.15.0",
143
+ "eslint": "^8.43.0",
144
144
  "mocha": "^10.2.0",
145
145
  "node-polyfill-webpack-plugin": "^2.0.1",
146
146
  "nodemon": "^2.0.22",
147
147
  "nyc": "^15.1.0",
148
148
  "wait-on": "^7.0.1",
149
- "webpack": "^5.82.0",
150
- "webpack-cli": "^5.0.2"
149
+ "webpack": "^5.88.0",
150
+ "webpack-cli": "^5.1.4"
151
151
  }
152
152
  }
@@ -52,7 +52,7 @@ module.exports = class EcRsaOaep {
52
52
  EcCrypto.deprecationNotice = true;
53
53
  if (EcCrypto.caching) {
54
54
  let cacheGet = null;
55
- cacheGet = EcCrypto.decryptionCache[ppk.toPem() + ciphertext];
55
+ cacheGet = EcCrypto.decryptionCache[ppk.toPk().fingerprint() + ciphertext];
56
56
  if (cacheGet != null) {
57
57
  return cacheGet;
58
58
  }
@@ -66,7 +66,7 @@ module.exports = class EcRsaOaep {
66
66
  );
67
67
  }
68
68
  if (EcCrypto.caching) {
69
- EcCrypto.decryptionCache[ppk.toPem() + ciphertext] = result;
69
+ EcCrypto.decryptionCache[ppk.toPk().fingerprint() + ciphertext] = result;
70
70
  }
71
71
  return result;
72
72
  }
@@ -101,7 +101,7 @@ module.exports = class EcRsaOaepAsync {
101
101
  static decrypt(ppk, cipherText, success, failure) {
102
102
  if (EcCrypto.caching) {
103
103
  let cacheGet = null;
104
- cacheGet = EcCrypto.decryptionCache[ppk.toPem() + cipherText];
104
+ cacheGet = EcCrypto.decryptionCache[ppk.toPk().fingerprint() + cipherText];
105
105
  if (cacheGet != null) {
106
106
  return cassReturnAsPromise(cacheGet, success, failure);
107
107
  }
@@ -131,7 +131,7 @@ module.exports = class EcRsaOaepAsync {
131
131
  result = EcCrypto.ab2str(p1);
132
132
  }
133
133
  if (EcCrypto.caching) {
134
- EcCrypto.decryptionCache[ppk.toPem() + cipherText] = result;
134
+ EcCrypto.decryptionCache[ppk.toPk().fingerprint() + cipherText] = result;
135
135
  }
136
136
  EcAesCtrAsync.fipsOff();
137
137
  return result;
@@ -117,7 +117,7 @@ module.exports = class EcRsaOaepAsyncWorker {
117
117
  static decrypt(ppk, ciphertext, success, failure) {
118
118
  if (EcCrypto.caching) {
119
119
  let cacheGet = null;
120
- cacheGet = EcCrypto.decryptionCache[ppk.toPem() + ciphertext];
120
+ cacheGet = EcCrypto.decryptionCache[ppk.toPk().fingerprint() + ciphertext];
121
121
  if (cacheGet != null) {
122
122
  return cassReturnAsPromise(cacheGet, success, failure);
123
123
  }
@@ -143,7 +143,7 @@ module.exports = class EcRsaOaepAsyncWorker {
143
143
  if (EcCrypto.caching)
144
144
  p = p.then(function (decrypted) {
145
145
  return EcCrypto.decryptionCache[
146
- ppk.toPem() + ciphertext
146
+ ppk.toPk().fingerprint() + ciphertext
147
147
  ] = decrypted;
148
148
  });
149
149
  return cassPromisify(p, success, failure);