@shopify/cli-kit 3.26.0 → 3.28.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/README.md +3 -1
- package/dist/api/graphql/extension_specifications.d.ts +4 -0
- package/dist/api/graphql/extension_specifications.js.map +1 -1
- package/dist/api/graphql/find_org.d.ts +0 -6
- package/dist/api/graphql/find_org.js +0 -6
- package/dist/api/graphql/find_org.js.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/public/node/node-package-manager.d.ts +10 -0
- package/dist/public/node/node-package-manager.js +30 -4
- package/dist/public/node/node-package-manager.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/version.d.ts +0 -17
- package/dist/version.js +0 -31
- package/dist/version.js.map +0 -1
package/package.json
CHANGED
package/dist/version.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the latest available version of an NPM package.
|
|
3
|
-
* @param name - The name of the NPM package.
|
|
4
|
-
* @returns A promise to get the latest available version of a package.
|
|
5
|
-
*/
|
|
6
|
-
export declare function latestNpmPackageVersion(name: string): Promise<string>;
|
|
7
|
-
interface FindPackageVersionUpOptions {
|
|
8
|
-
fromModuleURL: URL | string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Given a module URL, it traverses the directory hierarchy up until it finds a package.json
|
|
12
|
-
* and then it returns the version in it.
|
|
13
|
-
* @param options - Options
|
|
14
|
-
* @returns The version if it can find the package.json and it exists. An error otherwise.
|
|
15
|
-
*/
|
|
16
|
-
export declare function findPackageVersionUp(options: FindPackageVersionUpOptions): Promise<string>;
|
|
17
|
-
export {};
|
package/dist/version.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { content, token, debug } from './output.js';
|
|
2
|
-
import { moduleDirectory } from './path.js';
|
|
3
|
-
import { Bug } from './error.js';
|
|
4
|
-
import { findUpAndReadPackageJson } from './public/node/node-package-manager.js';
|
|
5
|
-
import latestVersion from 'latest-version';
|
|
6
|
-
/**
|
|
7
|
-
* Returns the latest available version of an NPM package.
|
|
8
|
-
* @param name - The name of the NPM package.
|
|
9
|
-
* @returns A promise to get the latest available version of a package.
|
|
10
|
-
*/
|
|
11
|
-
export async function latestNpmPackageVersion(name) {
|
|
12
|
-
debug(content `Getting the latest version of NPM package: ${token.raw(name)}`);
|
|
13
|
-
return latestVersion(name);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Given a module URL, it traverses the directory hierarchy up until it finds a package.json
|
|
17
|
-
* and then it returns the version in it.
|
|
18
|
-
* @param options - Options
|
|
19
|
-
* @returns The version if it can find the package.json and it exists. An error otherwise.
|
|
20
|
-
*/
|
|
21
|
-
export async function findPackageVersionUp(options) {
|
|
22
|
-
const fromDirectory = moduleDirectory(options.fromModuleURL);
|
|
23
|
-
const packageJson = await findUpAndReadPackageJson(fromDirectory);
|
|
24
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
25
|
-
const version = packageJson.content.version;
|
|
26
|
-
if (!version) {
|
|
27
|
-
throw new Bug(content `The package.json at path ${token.path(packageJson.path)} doesn't contain a version`);
|
|
28
|
-
}
|
|
29
|
-
return version;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,aAAa,CAAA;AACjD,OAAO,EAAC,eAAe,EAAC,MAAM,WAAW,CAAA;AACzC,OAAO,EAAC,GAAG,EAAC,MAAM,YAAY,CAAA;AAC9B,OAAO,EAAC,wBAAwB,EAAC,MAAM,uCAAuC,CAAA;AAC9E,OAAO,aAAa,MAAM,gBAAgB,CAAA;AAE1C;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,IAAY;IACxD,KAAK,CAAC,OAAO,CAAA,8CAA8C,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAC7E,OAAO,aAAa,CAAC,IAAI,CAAC,CAAA;AAC5B,CAAC;AAMD;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,OAAoC;IAC7E,MAAM,aAAa,GAAG,eAAe,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;IAC5D,MAAM,WAAW,GAAG,MAAM,wBAAwB,CAAC,aAAa,CAAC,CAAA;IACjE,8DAA8D;IAC9D,MAAM,OAAO,GAAI,WAAW,CAAC,OAAe,CAAC,OAAO,CAAA;IACpD,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,GAAG,CAAC,OAAO,CAAA,4BAA4B,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAA;KAC3G;IACD,OAAO,OAAO,CAAA;AAChB,CAAC","sourcesContent":["import {content, token, debug} from './output.js'\nimport {moduleDirectory} from './path.js'\nimport {Bug} from './error.js'\nimport {findUpAndReadPackageJson} from './public/node/node-package-manager.js'\nimport latestVersion from 'latest-version'\n\n/**\n * Returns the latest available version of an NPM package.\n * @param name - The name of the NPM package.\n * @returns A promise to get the latest available version of a package.\n */\nexport async function latestNpmPackageVersion(name: string) {\n debug(content`Getting the latest version of NPM package: ${token.raw(name)}`)\n return latestVersion(name)\n}\n\ninterface FindPackageVersionUpOptions {\n fromModuleURL: URL | string\n}\n\n/**\n * Given a module URL, it traverses the directory hierarchy up until it finds a package.json\n * and then it returns the version in it.\n * @param options - Options\n * @returns The version if it can find the package.json and it exists. An error otherwise.\n */\nexport async function findPackageVersionUp(options: FindPackageVersionUpOptions): Promise<string> {\n const fromDirectory = moduleDirectory(options.fromModuleURL)\n const packageJson = await findUpAndReadPackageJson(fromDirectory)\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const version = (packageJson.content as any).version\n if (!version) {\n throw new Bug(content`The package.json at path ${token.path(packageJson.path)} doesn't contain a version`)\n }\n return version\n}\n"]}
|