@ms-cloudpack/package-hashes 0.3.32 → 0.3.34-beta.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/PackageHashes.d.ts +8 -1
- package/lib/PackageHashes.d.ts.map +1 -1
- package/lib/PackageHashes.js +10 -8
- package/lib/PackageHashes.js.map +1 -1
- package/lib/hashPackage.js +0 -1
- package/lib/hashPackage.js.map +1 -1
- package/lib/types/HashFunctions.d.ts +7 -0
- package/lib/types/HashFunctions.d.ts.map +1 -1
- package/lib/types/HashFunctions.js.map +1 -1
- package/lib/types/PackageHashOptions.d.ts +0 -4
- package/lib/types/PackageHashOptions.d.ts.map +1 -1
- package/lib/types/PackageHashOptions.js.map +1 -1
- package/package.json +6 -6
- package/lib/tsdoc-metadata.json +0 -11
package/lib/PackageHashes.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import type { CloudpackConfig } from '@ms-cloudpack/config-types';
|
|
1
2
|
import type { PackageHashesOptions } from './types/PackageHashOptions.js';
|
|
3
|
+
import type { ResolveMap } from '@ms-cloudpack/package-utilities';
|
|
4
|
+
import type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';
|
|
2
5
|
/**
|
|
3
6
|
* Utility class for hashing packages and caching the results.
|
|
4
7
|
*/
|
|
@@ -16,10 +19,14 @@ export declare class PackageHashes {
|
|
|
16
19
|
* @param shouldRecalculate - Whether or not to force a re-calculation of the hash.
|
|
17
20
|
* @returns The hash for the package.
|
|
18
21
|
*/
|
|
19
|
-
get(
|
|
22
|
+
get(input: {
|
|
20
23
|
packagePath: string;
|
|
21
24
|
isSourceHashingEnabled: boolean;
|
|
22
25
|
shouldRecalculate?: boolean;
|
|
26
|
+
}, context: {
|
|
27
|
+
config: CloudpackConfig;
|
|
28
|
+
packages: PackageDefinitionsCache;
|
|
29
|
+
resolveMap: ResolveMap;
|
|
23
30
|
}): Promise<string>;
|
|
24
31
|
}
|
|
25
32
|
//# sourceMappingURL=PackageHashes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageHashes.d.ts","sourceRoot":"","sources":["../src/PackageHashes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PackageHashes.d.ts","sourceRoot":"","sources":["../src/PackageHashes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAIlE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E;;GAEG;AACH,qBAAa,aAAa;IAKZ,QAAQ,CAAC,OAAO,EAAE,oBAAoB;IAJlD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAA0D;IAC5F,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA0D;IAC9F,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAe;gBAEhB,OAAO,EAAE,oBAAoB;IAsBlD;;;;;;;OAOG;IACG,GAAG,CACP,KAAK,EAAE;QACL,WAAW,EAAE,MAAM,CAAC;QACpB,sBAAsB,EAAE,OAAO,CAAC;QAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B,EACD,OAAO,EAAE;QACP,MAAM,EAAE,eAAe,CAAC;QACxB,QAAQ,EAAE,uBAAuB,CAAC;QAClC,UAAU,EAAE,UAAU,CAAC;KACxB,GACA,OAAO,CAAC,MAAM,CAAC;CAenB"}
|
package/lib/PackageHashes.js
CHANGED
|
@@ -17,11 +17,13 @@ export class PackageHashes {
|
|
|
17
17
|
cwd: options.cwd,
|
|
18
18
|
globPattern: config.patchFilesGlobPattern,
|
|
19
19
|
});
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
this._hash = (input, hashContext) => hashPackage({
|
|
21
|
+
input,
|
|
22
|
+
context: {
|
|
23
|
+
...hashContext,
|
|
24
|
+
patches,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
25
27
|
}
|
|
26
28
|
/**
|
|
27
29
|
* Gets the hash for a given package path. This is useful for caching, to determine if the package has changed.
|
|
@@ -31,13 +33,13 @@ export class PackageHashes {
|
|
|
31
33
|
* @param shouldRecalculate - Whether or not to force a re-calculation of the hash.
|
|
32
34
|
* @returns The hash for the package.
|
|
33
35
|
*/
|
|
34
|
-
async get(
|
|
35
|
-
const { packagePath, isSourceHashingEnabled, shouldRecalculate } =
|
|
36
|
+
async get(input, context) {
|
|
37
|
+
const { packagePath, isSourceHashingEnabled, shouldRecalculate } = input;
|
|
36
38
|
const map = isSourceHashingEnabled ? this._hashesWithSource : this._hashesWithNoSource;
|
|
37
39
|
if (!shouldRecalculate && map.has(packagePath)) {
|
|
38
40
|
return map.get(packagePath);
|
|
39
41
|
}
|
|
40
|
-
const hash = await this._hash(
|
|
42
|
+
const hash = await this._hash(input, context);
|
|
41
43
|
map.set(packagePath, hash);
|
|
42
44
|
return hash;
|
|
43
45
|
}
|
package/lib/PackageHashes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageHashes.js","sourceRoot":"","sources":["../src/PackageHashes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PackageHashes.js","sourceRoot":"","sources":["../src/PackageHashes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C;;GAEG;AACH,MAAM,OAAO,aAAa;IAKxB,YAAqB,OAA6B;QAA7B,YAAO,GAAP,OAAO,CAAsB;QAJjC,sBAAiB,GAAG,IAAI,GAAG,EAA+C,CAAC;QAC3E,wBAAmB,GAAG,IAAI,GAAG,EAA+C,CAAC;QAI5F,IAAI,MAAM,IAAI,OAAO,EAAE,CAAC;YACtB,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;YAC1B,OAAO;QACT,CAAC;QAED,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;QACnC,MAAM,OAAO,GAAG,IAAI,mBAAmB,CAAC;YACtC,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,WAAW,EAAE,MAAM,CAAC,qBAAqB;SAC1C,CAAC,CAAC;QAEH,IAAI,CAAC,KAAK,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,CAClC,WAAW,CAAC;YACV,KAAK;YACL,OAAO,EAAE;gBACP,GAAG,WAAW;gBACd,OAAO;aACR;SACF,CAAC,CAAC;IACP,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,GAAG,CACP,KAIC,EACD,OAIC;QAED,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;QAEzE,MAAM,GAAG,GAAG,sBAAsB,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC;QAEvF,IAAI,CAAC,iBAAiB,IAAI,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YAC/C,OAAO,GAAG,CAAC,GAAG,CAAC,WAAW,CAAW,CAAC;QACxC,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAE9C,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QAE3B,OAAO,IAAI,CAAC;IACd,CAAC;CACF","sourcesContent":["import type { CloudpackConfig } from '@ms-cloudpack/config-types';\nimport { PackagePatchesCache } from './PackagePatchesCache.js';\nimport { hashPackage } from './hashPackage.js';\nimport type { HashFunction } from './types/HashFunctions.js';\nimport type { PackageHashesOptions } from './types/PackageHashOptions.js';\nimport type { ResolveMap } from '@ms-cloudpack/package-utilities';\nimport type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';\n\n/**\n * Utility class for hashing packages and caching the results.\n */\nexport class PackageHashes {\n private readonly _hashesWithSource = new Map<string /* packagePath */, string /* hash */>();\n private readonly _hashesWithNoSource = new Map<string /* packagePath */, string /* hash */>();\n private readonly _hash: HashFunction;\n\n constructor(readonly options: PackageHashesOptions) {\n if ('hash' in options) {\n this._hash = options.hash;\n return;\n }\n\n const { config } = options.context;\n const patches = new PackagePatchesCache({\n cwd: options.cwd,\n globPattern: config.patchFilesGlobPattern,\n });\n\n this._hash = (input, hashContext) =>\n hashPackage({\n input,\n context: {\n ...hashContext,\n patches,\n },\n });\n }\n\n /**\n * Gets the hash for a given package path. This is useful for caching, to determine if the package has changed.\n * If the package definition has not been calculated, it will be calculated and cached.\n * @param packagePath - The package path to get the hash for.\n * @param isSourceHashingEnabled - Whether or not to hash the source files.\n * @param shouldRecalculate - Whether or not to force a re-calculation of the hash.\n * @returns The hash for the package.\n */\n async get(\n input: {\n packagePath: string;\n isSourceHashingEnabled: boolean;\n shouldRecalculate?: boolean;\n },\n context: {\n config: CloudpackConfig;\n packages: PackageDefinitionsCache;\n resolveMap: ResolveMap;\n },\n ): Promise<string> {\n const { packagePath, isSourceHashingEnabled, shouldRecalculate } = input;\n\n const map = isSourceHashingEnabled ? this._hashesWithSource : this._hashesWithNoSource;\n\n if (!shouldRecalculate && map.has(packagePath)) {\n return map.get(packagePath) as string;\n }\n\n const hash = await this._hash(input, context);\n\n map.set(packagePath, hash);\n\n return hash;\n }\n}\n"]}
|
package/lib/hashPackage.js
CHANGED
package/lib/hashPackage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hashPackage.js","sourceRoot":"","sources":["../src/hashPackage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hashPackage.js","sourceRoot":"","sources":["../src/hashPackage.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAG/E,IAAI,SAAS,GAAG,CAAC,CAAC;AAElB;;GAEG;AACH,MAAM,WAAW,GAAG,CAAC,CAAC;AAEtB,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,MAWjC;IACC,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;IAChC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAClC,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,GAAG,KAAK,CAAC;IACtD,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAC1D,MAAM,gBAAgB,GAAwD,EAAE,CAAC;IACjF,MAAM,cAAc,GAAa,CAAC,WAAW,CAAC,CAAC;IAE/C,OAAO,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACjC,MAAM,aAAa,GAAG,cAAc,CAAC,GAAG,EAAE,CAAC;QAC3C,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,SAAS;QACX,CAAC;QAED,MAAM,WAAW,GAAG,MAAM,qBAAqB,CAAC;YAC9C,OAAO,EAAE,EAAE,sBAAsB,EAAE,WAAW,EAAE,aAAa,EAAE;YAC/D,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE;SACvC,CAAC,CAAC;QAEH,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAEnC,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,wBAAwB,GAAG,2BAA2B,CAAC;gBAC3D,OAAO,EAAE;oBACP,WAAW,EAAE,WAAW,CAAC,IAAI;oBAC7B,UAAU,EAAE,WAAW;iBACxB;gBACD,OAAO,EAAE,EAAE,eAAe,EAAE,WAAW,CAAC,eAAe,EAAE,UAAU,EAAE;aACtE,CAAC,CAAC;YACH,cAAc,CAAC,IAAI,CAAC,GAAG,wBAAwB,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;IAED,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,EAAE;QAC9C,WAAW,EAAE,KAAK;QAClB,eAAe,EAAE,IAAI;QACrB,aAAa,EAAE,IAAI;QACnB,gBAAgB,EAAE,IAAI;QACtB,aAAa,EAAE,IAAI;KACpB,CAAC,CAAC;IAEH,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAC9C,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC;IAC9C,SAAS,IAAI,WAAW,CAAC;IACzB,OAAO,CAAC,KAAK,CAAC,UAAU,IAAI,IAAI,OAAO,OAAO,WAAW,mBAAmB,SAAS,IAAI,CAAC,CAAC;IAE3F,OAAO,IAAI,WAAW,IAAI,UAAU,EAAE,CAAC;AACzC,CAAC","sourcesContent":["import type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';\nimport { type ResolveMap } from '@ms-cloudpack/package-utilities';\nimport objectHash from 'object-hash';\nimport { getPackageHashEntries } from './getPackageHashEntries.js';\nimport type { CloudpackConfig } from '@ms-cloudpack/config-types';\nimport { getInlinedDependenciesPaths } from './getInlinedDependenciesPaths.js';\nimport type { PackagePatches } from './types/PackagePatches.js';\n\nlet totalTime = 0;\n\n/**\n * Hash version is used to invalidate the cache when the hashing algorithm changes.\n */\nconst hashVersion = 4;\n\nexport async function hashPackage(params: {\n input: {\n packagePath: string;\n isSourceHashingEnabled: boolean;\n };\n context: {\n packages: PackageDefinitionsCache;\n config: CloudpackConfig;\n resolveMap: ResolveMap;\n patches: PackagePatches;\n };\n}): Promise<string> {\n const start = performance.now();\n const { input, context } = params;\n const { packagePath, isSourceHashingEnabled } = input;\n const { resolveMap, config, packages, patches } = context;\n const hashEntriesArray: Awaited<ReturnType<typeof getPackageHashEntries>>[] = [];\n const packagesToHash: string[] = [packagePath];\n\n while (packagesToHash.length > 0) {\n const packageToHash = packagesToHash.pop();\n if (!packageToHash) {\n continue;\n }\n\n const hashEntries = await getPackageHashEntries({\n options: { isSourceHashingEnabled, packagePath: packageToHash },\n context: { packages, config, patches },\n });\n\n hashEntriesArray.push(hashEntries);\n\n if (config) {\n const inlinedDependenciesPaths = getInlinedDependenciesPaths({\n options: {\n packageName: hashEntries.name,\n definition: hashEntries,\n },\n context: { packageSettings: hashEntries.packageSettings, resolveMap },\n });\n packagesToHash.push(...inlinedDependenciesPaths);\n }\n }\n\n const hashResult = objectHash(hashEntriesArray, {\n respectType: false,\n unorderedArrays: true,\n unorderedSets: true,\n unorderedObjects: true,\n ignoreUnknown: true,\n });\n\n const { name, version } = hashEntriesArray[0];\n const elapsedTime = performance.now() - start;\n totalTime += elapsedTime;\n console.debug(`Hashed ${name}@${version} in ${elapsedTime}ms, total time: ${totalTime}ms`);\n\n return `v${hashVersion}-${hashResult}`;\n}\n"]}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';
|
|
2
|
+
import type { CloudpackConfig } from '@ms-cloudpack/config-types';
|
|
3
|
+
import type { ResolveMap } from '@ms-cloudpack/package-utilities';
|
|
1
4
|
export type HashFunction = (params: {
|
|
2
5
|
packagePath: string;
|
|
3
6
|
isSourceHashingEnabled: boolean;
|
|
7
|
+
}, context: {
|
|
8
|
+
config: CloudpackConfig;
|
|
9
|
+
packages: PackageDefinitionsCache;
|
|
10
|
+
resolveMap: ResolveMap;
|
|
4
11
|
}) => Promise<string>;
|
|
5
12
|
//# sourceMappingURL=HashFunctions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HashFunctions.d.ts","sourceRoot":"","sources":["../../src/types/HashFunctions.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,
|
|
1
|
+
{"version":3,"file":"HashFunctions.d.ts","sourceRoot":"","sources":["../../src/types/HashFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAElE,MAAM,MAAM,YAAY,GAAG,CACzB,MAAM,EAAE;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,sBAAsB,EAAE,OAAO,CAAA;CAAE,EAChE,OAAO,EAAE;IAAE,MAAM,EAAE,eAAe,CAAC;IAAC,QAAQ,EAAE,uBAAuB,CAAC;IAAC,UAAU,EAAE,UAAU,CAAA;CAAE,KAC5F,OAAO,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HashFunctions.js","sourceRoot":"","sources":["../../src/types/HashFunctions.ts"],"names":[],"mappings":"","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"HashFunctions.js","sourceRoot":"","sources":["../../src/types/HashFunctions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';\nimport type { CloudpackConfig } from '@ms-cloudpack/config-types';\nimport type { ResolveMap } from '@ms-cloudpack/package-utilities';\n\nexport type HashFunction = (\n params: { packagePath: string; isSourceHashingEnabled: boolean },\n context: { config: CloudpackConfig; packages: PackageDefinitionsCache; resolveMap: ResolveMap },\n) => Promise<string>;\n"]}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';
|
|
2
1
|
import type { CloudpackConfig } from '@ms-cloudpack/config-types';
|
|
3
|
-
import type { ResolveMap } from '@ms-cloudpack/package-utilities';
|
|
4
2
|
import type { HashFunction } from './HashFunctions.js';
|
|
5
3
|
/**
|
|
6
4
|
* Options for the PackageHashes class.
|
|
@@ -17,9 +15,7 @@ export type PackageHashesOptions = {
|
|
|
17
15
|
* Context for the hash calculations.
|
|
18
16
|
*/
|
|
19
17
|
context: {
|
|
20
|
-
packages: PackageDefinitionsCache;
|
|
21
18
|
config: CloudpackConfig;
|
|
22
|
-
resolveMap: ResolveMap;
|
|
23
19
|
};
|
|
24
20
|
};
|
|
25
21
|
//# sourceMappingURL=PackageHashOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageHashOptions.d.ts","sourceRoot":"","sources":["../../src/types/PackageHashOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"PackageHashOptions.d.ts","sourceRoot":"","sources":["../../src/types/PackageHashOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B;IACE;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;CACpB,GACD;IACE,iFAAiF;IACjF,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,OAAO,EAAE;QACP,MAAM,EAAE,eAAe,CAAC;KACzB,CAAC;CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageHashOptions.js","sourceRoot":"","sources":["../../src/types/PackageHashOptions.ts"],"names":[],"mappings":"","sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"PackageHashOptions.js","sourceRoot":"","sources":["../../src/types/PackageHashOptions.ts"],"names":[],"mappings":"","sourcesContent":["import type { CloudpackConfig } from '@ms-cloudpack/config-types';\nimport type { HashFunction } from './HashFunctions.js';\n\n/**\n * Options for the PackageHashes class.\n */\nexport type PackageHashesOptions =\n | {\n /**\n * A function that returns the hash for a given package path. This is intended for testing purposes.\n */\n hash: HashFunction;\n }\n | {\n /** Working directory used to find the project root (usually repository root). */\n cwd: string;\n /**\n * Context for the hash calculations.\n */\n context: {\n config: CloudpackConfig;\n };\n };\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/package-hashes",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.34-beta.0",
|
|
4
4
|
"description": "Utilities for hashing packages.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@ms-cloudpack/bundler-types": "^0.25.
|
|
18
|
-
"@ms-cloudpack/
|
|
19
|
-
"@ms-cloudpack/config": "^0.
|
|
20
|
-
"@ms-cloudpack/
|
|
17
|
+
"@ms-cloudpack/bundler-types": "^0.25.2",
|
|
18
|
+
"@ms-cloudpack/config": "^0.17.36",
|
|
19
|
+
"@ms-cloudpack/config-types": "^0.7.0",
|
|
20
|
+
"@ms-cloudpack/package-utilities": "^6.0.2",
|
|
21
21
|
"fast-glob": "^3.2.12",
|
|
22
22
|
"glob-hasher": "^1.2.1",
|
|
23
23
|
"object-hash": "^3.0.0"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@ms-cloudpack/eslint-plugin-internal": "*",
|
|
27
27
|
"@ms-cloudpack/scripts": "*",
|
|
28
|
-
"@ms-cloudpack/test-utilities": "
|
|
28
|
+
"@ms-cloudpack/test-utilities": "0.5.0",
|
|
29
29
|
"@types/object-hash": "^3.0.2"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
package/lib/tsdoc-metadata.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.39.4"
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|