@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.
@@ -0,0 +1,2 @@
1
+ export declare function createBuildCache<K, V>(): Map<K, V>;
2
+ export declare function clearBuildCaches(): void;
package/lib/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from './buildCache';
2
+ export * from './serializer';
3
+ export * from './serializerCore';
@@ -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;
@@ -0,0 +1,2 @@
1
+ export declare let serializeRaw: (arg1?: any) => Buffer;
2
+ export declare let deserializeRaw: (arg1: Buffer) => any;
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-1fd1095e8.0",
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 --noEmit"
21
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src"
21
22
  },
22
- "types": "src/index.ts",
23
- "gitHead": "1fd1095e86da1e50d6c7819c0f132ce09a2bf396"
24
- }
23
+ "gitHead": "e99c742e92175ac411d807daf2ba45d5bacebb58"
24
+ }