@fynpo/base 1.1.11 → 1.1.12
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/dist/caching.d.ts +2 -2
- package/dist/caching.js +1 -1
- package/package.json +1 -1
package/dist/caching.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare function processInput({ cwd, input, packageJson, extra, }?: {
|
|
|
38
38
|
cwd?: string;
|
|
39
39
|
input: CacheInput;
|
|
40
40
|
packageJson?: Record<string, string | unknown>;
|
|
41
|
-
extra?:
|
|
41
|
+
extra?: any;
|
|
42
42
|
}): Promise<{
|
|
43
43
|
files: string[];
|
|
44
44
|
data: {
|
|
@@ -46,7 +46,7 @@ export declare function processInput({ cwd, input, packageJson, extra, }?: {
|
|
|
46
46
|
versions: any;
|
|
47
47
|
npmScripts: any;
|
|
48
48
|
fileHashes: Record<string, string>;
|
|
49
|
-
extra:
|
|
49
|
+
extra: any;
|
|
50
50
|
};
|
|
51
51
|
hash: string;
|
|
52
52
|
}>;
|
package/dist/caching.js
CHANGED
|
@@ -113,7 +113,7 @@ async function processInput({ cwd, input, packageJson, extra, } = { input: {} })
|
|
|
113
113
|
versions: lodash_1.default.pick(process.versions, input.includeVersions),
|
|
114
114
|
npmScripts: lodash_1.default.pick(lodash_1.default.get(packageJson || (await readPackageJson(cwd)), "scripts"), input.npmScripts),
|
|
115
115
|
fileHashes,
|
|
116
|
-
extra: extra ||
|
|
116
|
+
extra: extra || {}, // additional data
|
|
117
117
|
};
|
|
118
118
|
const hash = hashData(JSON.stringify(data));
|
|
119
119
|
return { files, data, hash };
|