@ms-cloudpack/common-types 0.24.12 → 0.24.14
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/LinkedPath.d.ts +1 -0
- package/lib/LinkedPath.d.ts.map +1 -1
- package/lib/LinkedPath.js.map +1 -1
- package/lib/PackageDefinitionsCache.d.ts +20 -2
- package/lib/PackageDefinitionsCache.d.ts.map +1 -1
- package/lib/PackageDefinitionsCache.js.map +1 -1
- package/lib/PackageHashesCache.d.ts +15 -6
- package/lib/PackageHashesCache.d.ts.map +1 -1
- package/lib/PackageHashesCache.js.map +1 -1
- package/lib/ResolveMapEntry.d.ts +3 -0
- package/lib/ResolveMapEntry.d.ts.map +1 -1
- package/lib/ResolveMapEntry.js.map +1 -1
- package/lib/Session.d.ts +3 -0
- package/lib/Session.d.ts.map +1 -1
- package/lib/Session.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/LinkedPath.d.ts
CHANGED
package/lib/LinkedPath.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkedPath.d.ts","sourceRoot":"","sources":["../src/LinkedPath.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb
|
|
1
|
+
{"version":3,"file":"LinkedPath.d.ts","sourceRoot":"","sources":["../src/LinkedPath.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,gFAAgF;IAChF,eAAe,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;CAC1C"}
|
package/lib/LinkedPath.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkedPath.js","sourceRoot":"","sources":["../src/LinkedPath.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Represents a path linked to the resolve map.\n */\nexport interface LinkedPath {\n /**\n * Path to where the link originates.\n */\n path: string;\n\n /**\n * Optional git root to limit package resolution discovery.\n */\n rootPath?: string;\n\n /**\n * If true, transitive internal packages will be linked rather than only the matched packages.\n */\n includeAll?: boolean;\n\n /**\n * Package matches to ignore when linking.\n */\n ignoredPackages?: string[];\n\n /**\n * If true, ignores resolutions from the host repo definition to the linked packages.\n */\n ignoreResolutions?: boolean;\n\n /** The strategy to use when resolving linked packages. Defaults to \"dedupe\". */\n resolveStrategy?: 'dedupe' | 'duplicate';\n}\n"]}
|
|
1
|
+
{"version":3,"file":"LinkedPath.js","sourceRoot":"","sources":["../src/LinkedPath.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Represents a path linked to the resolve map.\n */\nexport interface LinkedPath {\n /**\n * Path to where the link originates.\n */\n path: string;\n\n /**\n * Optional git root to limit package resolution discovery.\n * Used for testing only.\n */\n rootPath?: string;\n\n /**\n * If true, transitive internal packages will be linked rather than only the matched packages.\n */\n includeAll?: boolean;\n\n /**\n * Package matches to ignore when linking.\n */\n ignoredPackages?: string[];\n\n /**\n * If true, ignores resolutions from the host repo definition to the linked packages.\n */\n ignoreResolutions?: boolean;\n\n /** The strategy to use when resolving linked packages. Defaults to \"dedupe\". */\n resolveStrategy?: 'dedupe' | 'duplicate';\n}\n"]}
|
|
@@ -31,6 +31,11 @@ export interface GetPackageDefinitionOptions {
|
|
|
31
31
|
/** Info about the package that is importing this package, if known. */
|
|
32
32
|
importerContext?: PackageImporterContext;
|
|
33
33
|
}
|
|
34
|
+
/** Serializable representation of the package definitions cache. */
|
|
35
|
+
export interface SerializablePackageDefinitionsCache {
|
|
36
|
+
definitions: Record<string, PackageJson | undefined>;
|
|
37
|
+
transformedDefinitions: Record<string, PackageJson | undefined>;
|
|
38
|
+
}
|
|
34
39
|
/**
|
|
35
40
|
* Utility class for reading and caching package definition (`package.json`) objects,
|
|
36
41
|
* and optionally applying transforms.
|
|
@@ -63,8 +68,21 @@ export interface PackageDefinitionsCache {
|
|
|
63
68
|
newConfig?: CloudpackConfig;
|
|
64
69
|
}): void;
|
|
65
70
|
/**
|
|
66
|
-
*
|
|
71
|
+
* Sets the definition for a given package path.
|
|
72
|
+
* If called with `disableTransforms`, it will also delete the transformed definition from the cache,
|
|
73
|
+
* so that the next call to `get` will apply the transforms, else it will only update the transformed definition.
|
|
74
|
+
* This is useful when a package received through a serializable representation of the cache
|
|
75
|
+
* needs to be updated (e.g. automatically adding new exports during remote link).
|
|
76
|
+
*/
|
|
77
|
+
set(packagePath: string, definition: PackageJson, options?: Pick<GetPackageDefinitionOptions, 'disableTransforms'>): void;
|
|
78
|
+
/**
|
|
79
|
+
* Extends the cache with a serializable representation of the cache.
|
|
80
|
+
* This is useful for merging caches from different sources (e.g. link).
|
|
81
|
+
*/
|
|
82
|
+
extend(input: SerializablePackageDefinitionsCache): void;
|
|
83
|
+
/**
|
|
84
|
+
* Creates a serializable representation of the cache.
|
|
67
85
|
*/
|
|
68
|
-
|
|
86
|
+
toSerializable(): SerializablePackageDefinitionsCache;
|
|
69
87
|
}
|
|
70
88
|
//# sourceMappingURL=PackageDefinitionsCache.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageDefinitionsCache.d.ts","sourceRoot":"","sources":["../src/PackageDefinitionsCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,sFAAsF;AACtF,MAAM,WA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AAuB;IACtC;;;;OAIG;IACH,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,2BAA2B,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEtF;;;OAGG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,2BAA2B,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;IAErG;;;;;OAKG;IACH,iBAAiB,CAAC,OAAO,EAAE,iCAAiC,GAAG,IAAI,CAAC;IAEpE;;;;OAIG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,eAAe,CAAA;KAAE,GAAG,IAAI,CAAC;IAEvD;;;;;;OAMG;IACH,GAAG,CACD,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,WAAW,EACvB,OAAO,CAAC,EAAE,IAAI,CAAC,2BAA2B,EAAE,mBAAmB,CAAC,GAC/D,IAAI,CAAC;IAER;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,mCAAmC,GAAG,IAAI,CAAC;IAEzD;;OAEG;IACH,cAAc,IAAI,mCAAmC,CAAC;CACvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageDefinitionsCache.js","sourceRoot":"","sources":["../src/PackageDefinitionsCache.ts"],"names":[],"mappings":"","sourcesContent":["import type { CloudpackConfig } from './CloudpackConfig.js';\nimport type { PackageJson } from './PackageJson.js';\n\n/** Provides context about how a parent package imports/depends on another package. */\nexport interface PackageImporterContext {\n /** Actual name of the package that requested this package. */\n parentName: string;\n /** Actual version of the package that requested this package. */\n parentVersion: string;\n /** Name under which this package is imported by the parent. */\n importedName: string;\n /** Version spec the parent requested for this package. */\n versionRequirement: string;\n}\n\n/**\n * Transform applied to a `package.json` file after it's read.\n * `PackageDefinitions` clones the original object, so it's okay for transforms to mutate properties.\n * @returns The transformed definition, or undefined if there were no changes.\n */\nexport type PackageDefinitionTransform = (params: {\n definition: PackageJson;\n packagePath: string;\n packages: PackageDefinitionsCache;\n importerContext?: PackageImporterContext;\n}) => PackageJson | undefined | Promise<PackageJson | undefined>;\n\nexport type PackageDefinitionTransformFactory = (config?: CloudpackConfig) => PackageDefinitionTransform;\n\nexport interface GetPackageDefinitionOptions {\n /** If true, the package definition will be re-read from disk. */\n refresh?: boolean;\n /** If true, transforms will not be applied. */\n disableTransforms?: boolean;\n /** Info about the package that is importing this package, if known. */\n importerContext?: PackageImporterContext;\n}\n\n/**\n * Utility class for reading and caching package definition (`package.json`) objects,\n * and optionally applying transforms.\n */\nexport interface PackageDefinitionsCache {\n /**\n * Get a `package.json` (either from cache or disk) and apply transforms.\n * Throws an error if the file isn't found or there's an error parsing it.\n * (Use `tryGet` to avoid throwing.)\n */\n get(packagePath: string, options?: GetPackageDefinitionOptions): Promise<PackageJson>;\n\n /**\n * Get a `package.json` (either from cache or disk) and apply transforms.\n * Returns undefined if the file isn't found or there's an error parsing it.\n */\n tryGet(packagePath: string, options?: GetPackageDefinitionOptions): Promise<PackageJson | undefined>;\n\n /**\n * Registers a transform factory function, which will be called on initialization, and when reset,\n * to re-generate the transform function. Transform functions are called only when the package\n * definition hasn't been loaded before, and the result will be cached.\n * Calling `reset` will reset the cache.\n */\n registerTransform(factory: PackageDefinitionTransformFactory): void;\n\n /**\n * Resets the cache. If a `newConfig` value is provided, the transform factories will be called with the new value\n * to give them an opportunity to reflect changes to the config. It is `unknown` because the config type is\n * application-specific.\n */\n reset(options?: { newConfig?: CloudpackConfig }): void;\n\n /**\n *
|
|
1
|
+
{"version":3,"file":"PackageDefinitionsCache.js","sourceRoot":"","sources":["../src/PackageDefinitionsCache.ts"],"names":[],"mappings":"","sourcesContent":["import type { CloudpackConfig } from './CloudpackConfig.js';\nimport type { PackageJson } from './PackageJson.js';\n\n/** Provides context about how a parent package imports/depends on another package. */\nexport interface PackageImporterContext {\n /** Actual name of the package that requested this package. */\n parentName: string;\n /** Actual version of the package that requested this package. */\n parentVersion: string;\n /** Name under which this package is imported by the parent. */\n importedName: string;\n /** Version spec the parent requested for this package. */\n versionRequirement: string;\n}\n\n/**\n * Transform applied to a `package.json` file after it's read.\n * `PackageDefinitions` clones the original object, so it's okay for transforms to mutate properties.\n * @returns The transformed definition, or undefined if there were no changes.\n */\nexport type PackageDefinitionTransform = (params: {\n definition: PackageJson;\n packagePath: string;\n packages: PackageDefinitionsCache;\n importerContext?: PackageImporterContext;\n}) => PackageJson | undefined | Promise<PackageJson | undefined>;\n\nexport type PackageDefinitionTransformFactory = (config?: CloudpackConfig) => PackageDefinitionTransform;\n\nexport interface GetPackageDefinitionOptions {\n /** If true, the package definition will be re-read from disk. */\n refresh?: boolean;\n /** If true, transforms will not be applied. */\n disableTransforms?: boolean;\n /** Info about the package that is importing this package, if known. */\n importerContext?: PackageImporterContext;\n}\n\n/** Serializable representation of the package definitions cache. */\nexport interface SerializablePackageDefinitionsCache {\n definitions: Record<string, PackageJson | undefined>;\n transformedDefinitions: Record<string, PackageJson | undefined>;\n}\n\n/**\n * Utility class for reading and caching package definition (`package.json`) objects,\n * and optionally applying transforms.\n */\nexport interface PackageDefinitionsCache {\n /**\n * Get a `package.json` (either from cache or disk) and apply transforms.\n * Throws an error if the file isn't found or there's an error parsing it.\n * (Use `tryGet` to avoid throwing.)\n */\n get(packagePath: string, options?: GetPackageDefinitionOptions): Promise<PackageJson>;\n\n /**\n * Get a `package.json` (either from cache or disk) and apply transforms.\n * Returns undefined if the file isn't found or there's an error parsing it.\n */\n tryGet(packagePath: string, options?: GetPackageDefinitionOptions): Promise<PackageJson | undefined>;\n\n /**\n * Registers a transform factory function, which will be called on initialization, and when reset,\n * to re-generate the transform function. Transform functions are called only when the package\n * definition hasn't been loaded before, and the result will be cached.\n * Calling `reset` will reset the cache.\n */\n registerTransform(factory: PackageDefinitionTransformFactory): void;\n\n /**\n * Resets the cache. If a `newConfig` value is provided, the transform factories will be called with the new value\n * to give them an opportunity to reflect changes to the config. It is `unknown` because the config type is\n * application-specific.\n */\n reset(options?: { newConfig?: CloudpackConfig }): void;\n\n /**\n * Sets the definition for a given package path.\n * If called with `disableTransforms`, it will also delete the transformed definition from the cache,\n * so that the next call to `get` will apply the transforms, else it will only update the transformed definition.\n * This is useful when a package received through a serializable representation of the cache\n * needs to be updated (e.g. automatically adding new exports during remote link).\n */\n set(\n packagePath: string,\n definition: PackageJson,\n options?: Pick<GetPackageDefinitionOptions, 'disableTransforms'>,\n ): void;\n\n /**\n * Extends the cache with a serializable representation of the cache.\n * This is useful for merging caches from different sources (e.g. link).\n */\n extend(input: SerializablePackageDefinitionsCache): void;\n\n /**\n * Creates a serializable representation of the cache.\n */\n toSerializable(): SerializablePackageDefinitionsCache;\n}\n"]}
|
|
@@ -3,13 +3,13 @@ import type { TargetEnvironment } from './TargetEnvironment.js';
|
|
|
3
3
|
* Serializable representation of the package hashes cache.
|
|
4
4
|
*/
|
|
5
5
|
export interface SerializablePackageHashesCache {
|
|
6
|
-
hashesWithSource
|
|
7
|
-
browser
|
|
8
|
-
node
|
|
6
|
+
hashesWithSource: {
|
|
7
|
+
browser: Record<string, string>;
|
|
8
|
+
node: Record<string, string>;
|
|
9
9
|
};
|
|
10
|
-
hashesWithNoSource
|
|
11
|
-
browser
|
|
12
|
-
node
|
|
10
|
+
hashesWithNoSource: {
|
|
11
|
+
browser: Record<string, string>;
|
|
12
|
+
node: Record<string, string>;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
@@ -26,6 +26,15 @@ export interface PackageHashesCache {
|
|
|
26
26
|
* Creates a serializable representation of the cache.
|
|
27
27
|
*/
|
|
28
28
|
toSerializable(): SerializablePackageHashesCache;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the hash for a given package path. This is useful when the hash needs to be set manually (e.g. link).
|
|
31
|
+
*/
|
|
32
|
+
set(input: Omit<PackageHashOptions, 'shouldRecalculate'>, hash: string): void;
|
|
33
|
+
/**
|
|
34
|
+
* Extends the cache with a serializable representation of the cache.
|
|
35
|
+
* This is useful for merging caches from different sources (e.g. link).
|
|
36
|
+
*/
|
|
37
|
+
extend(input: SerializablePackageHashesCache): void;
|
|
29
38
|
}
|
|
30
39
|
/**
|
|
31
40
|
* Options for hashing a package (`PackageHashes.get`).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageHashesCache.d.ts","sourceRoot":"","sources":["../src/PackageHashesCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,gBAAgB,
|
|
1
|
+
{"version":3,"file":"PackageHashesCache.d.ts","sourceRoot":"","sources":["../src/PackageHashesCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,gBAAgB,EAAE;QAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAChC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC9B,CAAC;IACF,kBAAkB,EAAE;QAClB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAChC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC9B,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,GAAG,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEhD;;OAEG;IACH,cAAc,IAAI,8BAA8B,CAAC;IAEjD;;OAEG;IACH,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9E;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,8BAA8B,GAAG,IAAI,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IAEpB,0CAA0C;IAC1C,iBAAiB,EAAE,iBAAiB,CAAC;IAErC,+CAA+C;IAC/C,sBAAsB,EAAE,OAAO,CAAC;IAEhC,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageHashesCache.js","sourceRoot":"","sources":["../src/PackageHashesCache.ts"],"names":[],"mappings":"","sourcesContent":["import type { TargetEnvironment } from './TargetEnvironment.js';\n\n/**\n * Serializable representation of the package hashes cache.\n */\nexport interface SerializablePackageHashesCache {\n hashesWithSource
|
|
1
|
+
{"version":3,"file":"PackageHashesCache.js","sourceRoot":"","sources":["../src/PackageHashesCache.ts"],"names":[],"mappings":"","sourcesContent":["import type { TargetEnvironment } from './TargetEnvironment.js';\n\n/**\n * Serializable representation of the package hashes cache.\n */\nexport interface SerializablePackageHashesCache {\n hashesWithSource: {\n browser: Record<string, string>;\n node: Record<string, string>;\n };\n hashesWithNoSource: {\n browser: Record<string, string>;\n node: Record<string, string>;\n };\n}\n\n/**\n * Utility class for hashing packages and caching the results.\n */\nexport interface PackageHashesCache {\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 read, it will be read and cached.\n * @returns The hash for the package.\n */\n get(input: PackageHashOptions): Promise<string>;\n\n /**\n * Creates a serializable representation of the cache.\n */\n toSerializable(): SerializablePackageHashesCache;\n\n /**\n * Sets the hash for a given package path. This is useful when the hash needs to be set manually (e.g. link).\n */\n set(input: Omit<PackageHashOptions, 'shouldRecalculate'>, hash: string): void;\n\n /**\n * Extends the cache with a serializable representation of the cache.\n * This is useful for merging caches from different sources (e.g. link).\n */\n extend(input: SerializablePackageHashesCache): void;\n}\n\n/**\n * Options for hashing a package (`PackageHashes.get`).\n */\nexport interface PackageHashOptions {\n /** The package path to get the hash for. */\n packagePath: string;\n\n /** The target environment to hash for. */\n targetEnvironment: TargetEnvironment;\n\n /** Whether or not to hash the source files. */\n isSourceHashingEnabled: boolean;\n\n /** Whether to force a re-calculation of the hash. */\n shouldRecalculate?: boolean;\n}\n"]}
|
package/lib/ResolveMapEntry.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ export type ResolveMapEntry = {
|
|
|
21
21
|
*
|
|
22
22
|
* For any non-semver deps, the key (name) is as specified in package.json dependencies,
|
|
23
23
|
* mapped to the transformed version (e.g. `0.0.0-npm-foo-1-0-0`).
|
|
24
|
+
*
|
|
25
|
+
* If the session (or API context) containing this resolve map was created with `skipResolveDependencies`,
|
|
26
|
+
* this will be an empty object.
|
|
24
27
|
*/
|
|
25
28
|
dependencies: Record<string, string>;
|
|
26
29
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResolveMapEntry.d.ts","sourceRoot":"","sources":["../src/ResolveMapEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IAEb
|
|
1
|
+
{"version":3,"file":"ResolveMapEntry.d.ts","sourceRoot":"","sources":["../src/ResolveMapEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;;OAQG;IACH,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAErC;;;;;;;;;OASG;IACH,UAAU,EAAE,MAAM,CAAC,GAAG,MAAM,IAAI,MAAM,EAAE,EAAE,MAAM,CAAC,CAAC;IAElD;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE;QACf,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAAC;KACpC,CAAC;CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResolveMapEntry.js","sourceRoot":"","sources":["../src/ResolveMapEntry.ts"],"names":[],"mappings":"","sourcesContent":["export type ResolveMapEntry = {\n /**\n * Package name.\n *\n * If the package was pulled in as a renamed non-semver dep, this will be the name specified in\n * the parent's dependencies (not the actual name).\n */\n name: string;\n\n /**\n * Resolved/installed package version. For a linked internal package, this will end in `-linked`.\n * (The docs for `isExternal` explain what \"internal\" means.)\n *\n * If the package was pulled in as a non-semver dep, this will be the transformed version\n * (e.g. `0.0.0-npm-foo-1-0-0`) based on the parent's dependencies.\n */\n version: string;\n\n /** Path to the resolved/installed package. */\n path: string;\n\n /**\n * Map from dependency name to resolved/installed version.\n *\n * For any non-semver deps, the key (name) is as specified in package.json dependencies,\n * mapped to the transformed version (e.g. `0.0.0-npm-foo-1-0-0`).\n */\n dependencies: Record<string, string>;\n\n /**\n * Map from requesting/parent package name `@` the actual version of that package to\n * the original semver range of this package that it requested.\n *\n * Example: if this entry is for package `bar`, and `foo@1.0.0` depends on `\"bar\": \"^2.0.0\"`,\n * this will be `{ \"foo@1.0.0\": \"^2.0.0\" }`.\n *\n * If the parent package was pulled in by its parent (the grandparent) as a non-semver dep,\n * the key will use the name as specified by the grandparent and the transformed version.\n */\n requiredBy: Record<`${string}@${string}`, string>;\n\n /**\n * A package is considered \"external\" if it was installed from a package manager (its realpath\n * contains `node_modules`). This is the opposite of \"internal\", which means that the package\n * is defined in a local folder/repo.\n */\n isExternal?: boolean;\n\n /**\n * Whether this package is linked **AND** is internal to its actual folder/repo.\n * (The docs for `isExternal` explain what \"internal\" means.)\n */\n isLinked?: boolean;\n\n /**\n * Additional installed versions of this package, which are required per semver by some other\n * package in the map.\n *\n * For any version that was pulled in as a non-semver dep, the key will be the transformed\n * version (e.g. `0.0.0-npm-foo-1-0-0`).\n */\n scopedVersions?: {\n [version: string]: ResolveMapEntry;\n };\n};\n"]}
|
|
1
|
+
{"version":3,"file":"ResolveMapEntry.js","sourceRoot":"","sources":["../src/ResolveMapEntry.ts"],"names":[],"mappings":"","sourcesContent":["export type ResolveMapEntry = {\n /**\n * Package name.\n *\n * If the package was pulled in as a renamed non-semver dep, this will be the name specified in\n * the parent's dependencies (not the actual name).\n */\n name: string;\n\n /**\n * Resolved/installed package version. For a linked internal package, this will end in `-linked`.\n * (The docs for `isExternal` explain what \"internal\" means.)\n *\n * If the package was pulled in as a non-semver dep, this will be the transformed version\n * (e.g. `0.0.0-npm-foo-1-0-0`) based on the parent's dependencies.\n */\n version: string;\n\n /** Path to the resolved/installed package. */\n path: string;\n\n /**\n * Map from dependency name to resolved/installed version.\n *\n * For any non-semver deps, the key (name) is as specified in package.json dependencies,\n * mapped to the transformed version (e.g. `0.0.0-npm-foo-1-0-0`).\n *\n * If the session (or API context) containing this resolve map was created with `skipResolveDependencies`,\n * this will be an empty object.\n */\n dependencies: Record<string, string>;\n\n /**\n * Map from requesting/parent package name `@` the actual version of that package to\n * the original semver range of this package that it requested.\n *\n * Example: if this entry is for package `bar`, and `foo@1.0.0` depends on `\"bar\": \"^2.0.0\"`,\n * this will be `{ \"foo@1.0.0\": \"^2.0.0\" }`.\n *\n * If the parent package was pulled in by its parent (the grandparent) as a non-semver dep,\n * the key will use the name as specified by the grandparent and the transformed version.\n */\n requiredBy: Record<`${string}@${string}`, string>;\n\n /**\n * A package is considered \"external\" if it was installed from a package manager (its realpath\n * contains `node_modules`). This is the opposite of \"internal\", which means that the package\n * is defined in a local folder/repo.\n */\n isExternal?: boolean;\n\n /**\n * Whether this package is linked **AND** is internal to its actual folder/repo.\n * (The docs for `isExternal` explain what \"internal\" means.)\n */\n isLinked?: boolean;\n\n /**\n * Additional installed versions of this package, which are required per semver by some other\n * package in the map.\n *\n * For any version that was pulled in as a non-semver dep, the key will be the transformed\n * version (e.g. `0.0.0-npm-foo-1-0-0`).\n */\n scopedVersions?: {\n [version: string]: ResolveMapEntry;\n };\n};\n"]}
|
package/lib/Session.d.ts
CHANGED
|
@@ -13,6 +13,9 @@ export interface Session {
|
|
|
13
13
|
config: CloudpackConfig;
|
|
14
14
|
/**
|
|
15
15
|
* Used to resolve packages in the dependency graph.
|
|
16
|
+
*
|
|
17
|
+
* NOTE: If the session (or whole API context) was created with `skipResolveDependencies`,
|
|
18
|
+
* this will only contain the entry point package(s).
|
|
16
19
|
*/
|
|
17
20
|
resolveMap: ResolveMap;
|
|
18
21
|
/**
|
package/lib/Session.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../src/Session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,eAAe,CAAC;IAExB
|
|
1
|
+
{"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../src/Session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,E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E,MAAM,CAAC;CACnB"}
|
package/lib/Session.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Session.js","sourceRoot":"","sources":["../src/Session.ts"],"names":[],"mappings":"","sourcesContent":["import type { ImportMap } from './ImportMap.js';\nimport type { LinkedPath } from './LinkedPath.js';\nimport type { ResolveMap } from './ResolveMap.js';\nimport type { CloudpackConfig } from './CloudpackConfig.js';\n\nexport interface Session {\n /**\n * UUID for the session.\n */\n id: string;\n\n /**\n * The config used by the session.\n */\n config: CloudpackConfig;\n\n /**\n * Used to resolve packages in the dependency graph.\n */\n resolveMap: ResolveMap;\n\n /**\n * Reload sequence to ensure that the client is always up to date with the latest changes.\n */\n sequence: number;\n\n /**\n * URLs of the active servers hosting this session.\n * Each URL will only be set after the server is started.\n */\n urls: {\n appServer?: string;\n /** If `useSingleWebServer` is enabled, this will be a URL for bundles under the app server. */\n bundleServer?: string;\n apiServer?: string;\n };\n\n /**\n * Used to force a hard refresh on the client.\n */\n sessionVersion: number;\n\n /**\n * Used to increment the session version by 1.\n */\n incrementSessionVersion: () => void;\n\n /**\n * The name of the project folder.\n * Used to differentiate between multiple projects.\n */\n projectName: string;\n\n /**\n * The version of each target.\n * Used to force a client cache refresh on a single target.\n */\n targetVersions: Record<string, number>;\n\n /**\n * Increments the version for the given target.\n */\n incrementTargetVersion: (inputPath: string) => void;\n\n /**\n * The current import map. This will only be set in contexts where an import map is needed,\n * such as during `cloudpack start` or for SSR.\n */\n importMap: ImportMap | undefined;\n\n /**\n * Cached mapping from absolute package path to all import paths for that package, calculated by\n * `createImportMap`. This is used by `addImportMapHash` to update the import map after bundling.\n * (Caching the import paths is useful for performance, as calculating them can be expensive.)\n * @example '/path/to/foo': `['foo', 'foo/bar']`\n */\n packageImportPaths: Map<string, string[]>;\n\n /**\n * Linked paths that are used to resolve packages from other repos.\n */\n linkedPaths: LinkedPath[];\n\n /**\n * Add the linked path and regenerates the resolve map.\n */\n addLinkedPath: (linkedPath: LinkedPath) => Promise<{ resolveMap: ResolveMap; linkedPaths: LinkedPath[] }>;\n\n /**\n * Remove the linked path and regenerates the resolve map.\n */\n removeLinkedPath: (linkedPath: LinkedPath) => Promise<{ resolveMap: ResolveMap; linkedPaths: LinkedPath[] }>;\n\n /**\n * The path to the cache folder for the session.\n */\n cachePath: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Session.js","sourceRoot":"","sources":["../src/Session.ts"],"names":[],"mappings":"","sourcesContent":["import type { ImportMap } from './ImportMap.js';\nimport type { LinkedPath } from './LinkedPath.js';\nimport type { ResolveMap } from './ResolveMap.js';\nimport type { CloudpackConfig } from './CloudpackConfig.js';\n\nexport interface Session {\n /**\n * UUID for the session.\n */\n id: string;\n\n /**\n * The config used by the session.\n */\n config: CloudpackConfig;\n\n /**\n * Used to resolve packages in the dependency graph.\n *\n * NOTE: If the session (or whole API context) was created with `skipResolveDependencies`,\n * this will only contain the entry point package(s).\n */\n resolveMap: ResolveMap;\n\n /**\n * Reload sequence to ensure that the client is always up to date with the latest changes.\n */\n sequence: number;\n\n /**\n * URLs of the active servers hosting this session.\n * Each URL will only be set after the server is started.\n */\n urls: {\n appServer?: string;\n /** If `useSingleWebServer` is enabled, this will be a URL for bundles under the app server. */\n bundleServer?: string;\n apiServer?: string;\n };\n\n /**\n * Used to force a hard refresh on the client.\n */\n sessionVersion: number;\n\n /**\n * Used to increment the session version by 1.\n */\n incrementSessionVersion: () => void;\n\n /**\n * The name of the project folder.\n * Used to differentiate between multiple projects.\n */\n projectName: string;\n\n /**\n * The version of each target.\n * Used to force a client cache refresh on a single target.\n */\n targetVersions: Record<string, number>;\n\n /**\n * Increments the version for the given target.\n */\n incrementTargetVersion: (inputPath: string) => void;\n\n /**\n * The current import map. This will only be set in contexts where an import map is needed,\n * such as during `cloudpack start` or for SSR.\n */\n importMap: ImportMap | undefined;\n\n /**\n * Cached mapping from absolute package path to all import paths for that package, calculated by\n * `createImportMap`. This is used by `addImportMapHash` to update the import map after bundling.\n * (Caching the import paths is useful for performance, as calculating them can be expensive.)\n * @example '/path/to/foo': `['foo', 'foo/bar']`\n */\n packageImportPaths: Map<string, string[]>;\n\n /**\n * Linked paths that are used to resolve packages from other repos.\n */\n linkedPaths: LinkedPath[];\n\n /**\n * Add the linked path and regenerates the resolve map.\n */\n addLinkedPath: (linkedPath: LinkedPath) => Promise<{ resolveMap: ResolveMap; linkedPaths: LinkedPath[] }>;\n\n /**\n * Remove the linked path and regenerates the resolve map.\n */\n removeLinkedPath: (linkedPath: LinkedPath) => Promise<{ resolveMap: ResolveMap; linkedPaths: LinkedPath[] }>;\n\n /**\n * The path to the cache folder for the session.\n */\n cachePath: string;\n}\n"]}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { allFeatures } from './allFeatures.js';
|
|
2
|
-
export type { GetPackageDefinitionOptions, PackageDefinitionTransform, PackageDefinitionTransformFactory, PackageDefinitionsCache, PackageImporterContext, } from './PackageDefinitionsCache.js';
|
|
2
|
+
export type { GetPackageDefinitionOptions, PackageDefinitionTransform, PackageDefinitionTransformFactory, PackageDefinitionsCache, PackageImporterContext, SerializablePackageDefinitionsCache, } from './PackageDefinitionsCache.js';
|
|
3
3
|
export type { LiteralOrString, PackageJson, PackageJsonCloudpackMeta, PackageJsonDependencies, PackageJsonExportCondition, PackageJsonExports, PackageJsonExportsObject, GeneratedExports, PackageJsonExportsValue, } from './PackageJson.js';
|
|
4
4
|
export type { BundleContext } from './BundleContext.js';
|
|
5
5
|
export type { BundleMessage } from './BundleMessage.js';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,YAAY,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,iCAAiC,EACjC,uBAAuB,EACvB,sBAAsB,
|
|
1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YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,YAAY,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AA2D/C,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,eAAe,EACf,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,YAAY,CAAC","sourcesContent":["export { allFeatures } from './allFeatures.js';\nexport type {\n GetPackageDefinitionOptions,\n PackageDefinitionTransform,\n PackageDefinitionTransformFactory,\n PackageDefinitionsCache,\n PackageImporterContext,\n SerializablePackageDefinitionsCache,\n} from './PackageDefinitionsCache.js';\nexport type {\n LiteralOrString,\n PackageJson,\n PackageJsonCloudpackMeta,\n PackageJsonDependencies,\n PackageJsonExportCondition,\n PackageJsonExports,\n PackageJsonExportsObject,\n GeneratedExports,\n PackageJsonExportsValue,\n} from './PackageJson.js';\nexport type { BundleContext } from './BundleContext.js';\nexport type { BundleMessage } from './BundleMessage.js';\nexport type { BundleMessageLocation } from './BundleMessageLocation.js';\nexport type { BundleMessageNote } from './BundleMessageNote.js';\nexport type { BundleMode } from './BundleMode.js';\nexport type { BundleOptions } from './BundleOptions.js';\nexport type { BundleOutputFile } from './BundleOutputFile.js';\nexport type { BundleResult } from './BundleResult.js';\nexport type { BundlerResult } from './BundlerResult.js';\nexport type { Bundler } from './Bundler.js';\nexport type { CloudpackConfig } from './CloudpackConfig.js';\nexport type { ServerConfig } from './ServerConfig.js';\nexport type { ExpandedSourcePath } from './ExpandedSourcePath.js';\nexport type { Feature } from './Feature.js';\nexport type { Features } from './Features.js';\nexport type { GeneratedConfig } from './GeneratedConfig.js';\nexport type { HttpsConfig } from './HttpsConfig.js';\nexport type { LinkOptions } from './LinkOptions.js';\nexport type { ModuleType } from './ModuleType.js';\nexport type { PackageHashesCache, PackageHashOptions, SerializablePackageHashesCache } from './PackageHashesCache.js';\nexport type {\n PackageSettings,\n PackageSettingsMatch,\n PackageSettingsMatchObject,\n GeneratedPackageSettings,\n} from './PackageSettings.js';\nexport type {\n BootstrapRoute,\n ProxyRoute,\n RedirectRoute,\n RenderedRoute,\n Route,\n RouteMatch,\n SharedRouteOptions,\n ShorthandRenderedRoute,\n ShorthandBootstrapRoute,\n ShorthandRoute,\n StaticRoute,\n} from './Route.js';\nexport {\n isBootstrapRoute,\n isProxyRoute,\n isRenderedRoute,\n isStaticRoute,\n isRedirectRoute,\n isShorthandBootstrapRoute,\n isShorthandRenderedRoute,\n} from './Route.js';\nexport type { TelemetryConfig } from './TelemetryConfig.js';\nexport type { AppConfig } from './AppConfig.js';\nexport type {\n BundlerCapability,\n InternalBundlerCapabilityImplementations,\n InternalBundlerCapabilitiesMetaData,\n BundlerCapabilitiesOptions,\n ExternalBundlerCapabilityModule,\n BundlerCapabilityFunction,\n} from './BundlerCapability.js';\nexport type { RemoteCacheConfig } from './RemoteCacheConfig.js';\nexport type {\n RenderFunction,\n RenderFunctionOptions,\n RenderFunctionResult,\n ExpandedRenderFunctionResult,\n RenderFunctionScript,\n} from './RenderFunction.js';\nexport type { Request, Response, RequestHandler } from 'express';\nexport type { Session } from './Session.js';\nexport type { ResolveMap } from './ResolveMap.js';\nexport type { ResolveMapEntry } from './ResolveMapEntry.js';\nexport type { LinkedPath } from './LinkedPath.js';\nexport type { ImportMap } from './ImportMap.js';\nexport type { UserPreferences } from './UserPreferences.js';\nexport type { TargetEnvironment } from './TargetEnvironment.js';\nexport type { NestedPartial } from './NestedPartial.js';\nexport type { WithOptional } from './WithOptional.js';\nexport type { WithRequired } from './WithRequired.js';\n"]}
|