featurely-site-manager 1.1.24 → 1.1.26

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.
Files changed (2) hide show
  1. package/dist/cli.js +14 -4
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -19,7 +19,9 @@ async function main() {
19
19
  const rawArgs = process.argv.slice(2);
20
20
  const isScanPackages = rawArgs[0] === "scan" && rawArgs[1] === "packages";
21
21
  if (!isScanPackages) {
22
- console.error("Usage: featurely-site-manager scan packages --key <api-key> --project <project-id>");
22
+ console.error(
23
+ "Usage: featurely-site-manager scan packages --key <api-key> --project <project-id>"
24
+ );
23
25
  process.exit(1);
24
26
  }
25
27
  const args = parseArgs(rawArgs.slice(2));
@@ -45,8 +47,14 @@ async function main() {
45
47
  const deps = (_b = pkgJson.dependencies) != null ? _b : {};
46
48
  const devDeps = (_c = pkgJson.devDependencies) != null ? _c : {};
47
49
  const packages = [
48
- ...Object.entries(deps).map(([name, version]) => ({ name, version: version.replace(/^[\^~>=<]/, "") })),
49
- ...Object.entries(devDeps).map(([name, version]) => ({ name, version: version.replace(/^[\^~>=<]/, "") }))
50
+ ...Object.entries(deps).map(([name, version]) => ({
51
+ name,
52
+ version: version.replace(/^[\^~>=<]/, "")
53
+ })),
54
+ ...Object.entries(devDeps).map(([name, version]) => ({
55
+ name,
56
+ version: version.replace(/^[\^~>=<]/, "")
57
+ }))
50
58
  ];
51
59
  if (packages.length === 0) {
52
60
  console.log("No dependencies found in package.json \u2014 nothing to scan.");
@@ -75,6 +83,8 @@ async function main() {
75
83
  }
76
84
  const data = await res.json();
77
85
  const count = Array.isArray(data.packages) ? data.packages.length : packages.length;
78
- console.log(`\u2713 Scan complete. ${count} packages analysed. View results in your Featurely dashboard.`);
86
+ console.log(
87
+ `\u2713 Scan complete. ${count} packages analysed. View results in your Featurely dashboard.`
88
+ );
79
89
  }
80
90
  main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "featurely-site-manager",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "description": "Complete site management SDK for maintenance mode, status messages, feature flags, version checking, and analytics",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -13,7 +13,7 @@
13
13
  }
14
14
  },
15
15
  "bin": {
16
- "featurely-site-manager": "./dist/cli.js"
16
+ "featurely-site-manager": "dist/cli.js"
17
17
  },
18
18
  "files": [
19
19
  "dist",