@contrast/rewriter 1.23.0 → 1.24.0
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/lib/cache.js +2 -2
- package/package.json +5 -5
package/lib/cache.js
CHANGED
|
@@ -20,7 +20,7 @@ const fsPromises = require('node:fs/promises');
|
|
|
20
20
|
const os = require('node:os');
|
|
21
21
|
const path = require('node:path');
|
|
22
22
|
const { version } = require('../package.json');
|
|
23
|
-
const { primordials: { StringPrototypeReplace, StringPrototypeReplaceAll } } = require('@contrast/common');
|
|
23
|
+
const { primordials: { StringPrototypeReplace, StringPrototypeReplaceAll, FsReadFileSync } } = require('@contrast/common');
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Returns the modification time of a file as a number.
|
|
@@ -200,7 +200,7 @@ module.exports.Cache = class Cache {
|
|
|
200
200
|
'Cache current.'
|
|
201
201
|
);
|
|
202
202
|
|
|
203
|
-
return
|
|
203
|
+
return FsReadFileSync(filenameCached, 'utf8');
|
|
204
204
|
} catch (err) {
|
|
205
205
|
// @ts-expect-error ts treats errors poorly.
|
|
206
206
|
if (err.code !== 'ENOENT') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/rewriter",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.0",
|
|
4
4
|
"description": "A transpilation tool mainly used for instrumentation",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@contrast/agent-swc-plugin": "^2.0.0",
|
|
24
|
-
"@contrast/common": "1.
|
|
25
|
-
"@contrast/config": "1.
|
|
26
|
-
"@contrast/core": "1.
|
|
27
|
-
"@contrast/logger": "1.
|
|
24
|
+
"@contrast/common": "1.32.0",
|
|
25
|
+
"@contrast/config": "1.43.0",
|
|
26
|
+
"@contrast/core": "1.48.0",
|
|
27
|
+
"@contrast/logger": "1.21.0",
|
|
28
28
|
"@swc/core": "1.5.29"
|
|
29
29
|
}
|
|
30
30
|
}
|