@atlaspack/cache 3.2.16-typescript-80839fbd5.0 → 3.2.16-typescript-c10a7ae7b.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/LMDBLiteCache.js +1 -4
- package/package.json +8 -8
- package/src/LMDBLiteCache.ts +0 -2
package/lib/LMDBLiteCache.js
CHANGED
@@ -175,13 +175,10 @@ class LMDBLiteCache {
|
|
175
175
|
}
|
176
176
|
async setStream(key, stream) {
|
177
177
|
if (!(0, _featureFlags().getFeatureFlag)('cachePerformanceImprovements')) {
|
178
|
-
return pipeline(stream,
|
179
|
-
// @ts-expect-error TS2554
|
180
|
-
this.fs.createWriteStream(_path().default.join(this.dir, key)));
|
178
|
+
return pipeline(stream, this.fs.createWriteStream(_path().default.join(this.dir, key)));
|
181
179
|
}
|
182
180
|
const filePath = this.getFileKey(key);
|
183
181
|
await this.fs.mkdirp(_path().default.dirname(filePath));
|
184
|
-
// @ts-expect-error TS2554
|
185
182
|
return pipeline(stream, this.fs.createWriteStream(filePath));
|
186
183
|
}
|
187
184
|
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaspack/cache",
|
3
3
|
"description": "Interface for defining caches and file-system, IDB and LMDB implementations.",
|
4
|
-
"version": "3.2.16-typescript-
|
4
|
+
"version": "3.2.16-typescript-c10a7ae7b.0",
|
5
5
|
"license": "(MIT OR Apache-2.0)",
|
6
6
|
"type": "commonjs",
|
7
7
|
"publishConfig": {
|
@@ -22,12 +22,12 @@
|
|
22
22
|
"check-ts": "tsc --noEmit"
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
|
-
"@atlaspack/build-cache": "2.13.4-typescript-
|
26
|
-
"@atlaspack/feature-flags": "2.19.3-typescript-
|
27
|
-
"@atlaspack/fs": "2.15.16-typescript-
|
28
|
-
"@atlaspack/logger": "2.14.14-typescript-
|
29
|
-
"@atlaspack/rust": "3.4.2-typescript-
|
30
|
-
"@atlaspack/utils": "2.17.3-typescript-
|
25
|
+
"@atlaspack/build-cache": "2.13.4-typescript-c10a7ae7b.0",
|
26
|
+
"@atlaspack/feature-flags": "2.19.3-typescript-c10a7ae7b.0",
|
27
|
+
"@atlaspack/fs": "2.15.16-typescript-c10a7ae7b.0",
|
28
|
+
"@atlaspack/logger": "2.14.14-typescript-c10a7ae7b.0",
|
29
|
+
"@atlaspack/rust": "3.4.2-typescript-c10a7ae7b.0",
|
30
|
+
"@atlaspack/utils": "2.17.3-typescript-c10a7ae7b.0",
|
31
31
|
"ncp": "^2.0.0"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
@@ -36,5 +36,5 @@
|
|
36
36
|
"browser": {
|
37
37
|
"./src/IDBCache.js": "./src/IDBCache.browser.js"
|
38
38
|
},
|
39
|
-
"gitHead": "
|
39
|
+
"gitHead": "c10a7ae7b0dc2c79430506d16447ff9bb9966043"
|
40
40
|
}
|
package/src/LMDBLiteCache.ts
CHANGED
@@ -172,14 +172,12 @@ export class LMDBLiteCache implements Cache {
|
|
172
172
|
if (!getFeatureFlag('cachePerformanceImprovements')) {
|
173
173
|
return pipeline(
|
174
174
|
stream,
|
175
|
-
// @ts-expect-error TS2554
|
176
175
|
this.fs.createWriteStream(path.join(this.dir, key)),
|
177
176
|
);
|
178
177
|
}
|
179
178
|
|
180
179
|
const filePath = this.getFileKey(key);
|
181
180
|
await this.fs.mkdirp(path.dirname(filePath));
|
182
|
-
// @ts-expect-error TS2554
|
183
181
|
return pipeline(stream, this.fs.createWriteStream(filePath));
|
184
182
|
}
|
185
183
|
|