@atlaspack/build-cache 2.13.4-typescript-1fd1095e8.0 → 2.13.4-typescript-e99c742e9.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/buildCache.d.ts +2 -0
- package/lib/index.d.ts +3 -0
- package/lib/serializer.d.ts +11 -0
- package/lib/serializerCore.d.ts +2 -0
- package/package.json +7 -7
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { serializeRaw, deserializeRaw } from './serializerCore';
|
|
2
|
+
export type Class<T> = new (...args: any[]) => T;
|
|
3
|
+
export declare function registerSerializableClass(name: string, ctor: Class<any>): void;
|
|
4
|
+
export declare function unregisterSerializableClass(name: string, ctor: Class<any>): void;
|
|
5
|
+
export declare function prepareForSerialization(object: any): any;
|
|
6
|
+
export declare function restoreDeserializedObject(object: any): any;
|
|
7
|
+
export declare function serialize(object: any): Buffer;
|
|
8
|
+
export declare function deserialize(buffer: Buffer): any;
|
|
9
|
+
export declare function cacheSerializedObject(object: any, buffer?: Buffer): void;
|
|
10
|
+
export declare function deserializeToCache(buffer: Buffer): any;
|
|
11
|
+
export declare function removeSerializedObjectFromCache(object: any): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/build-cache",
|
|
3
3
|
"description": "Serialize and deserialize data structures to a build cache",
|
|
4
|
-
"version": "2.13.4-typescript-
|
|
4
|
+
"version": "2.13.4-typescript-e99c742e9.0",
|
|
5
5
|
"license": "(MIT OR Apache-2.0)",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"publishConfig": {
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/atlassian-labs/atlaspack.git"
|
|
13
13
|
},
|
|
14
|
-
"main": "lib/index.js",
|
|
15
|
-
"source": "src/index.ts",
|
|
14
|
+
"main": "./lib/index.js",
|
|
15
|
+
"source": "./src/index.ts",
|
|
16
|
+
"types": "./lib/index.d.ts",
|
|
16
17
|
"engines": {
|
|
17
18
|
"node": ">= 16.0.0"
|
|
18
19
|
},
|
|
19
20
|
"scripts": {
|
|
20
|
-
"check-ts": "tsc --
|
|
21
|
+
"check-ts": "tsc --emitDeclarationOnly --rootDir src"
|
|
21
22
|
},
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
}
|
|
23
|
+
"gitHead": "e99c742e92175ac411d807daf2ba45d5bacebb58"
|
|
24
|
+
}
|