oc 0.49.56 → 0.49.58
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/CHANGELOG.md +6 -0
- package/dist/cli/domain/clean.js +2 -3
- package/dist/cli/domain/get-components-by-dir.js +1 -1
- package/dist/cli/domain/get-mocked-plugins.js +1 -1
- package/dist/cli/domain/handle-dependencies/ensure-compiler-is-declared-as-devDependency.js +1 -1
- package/dist/cli/domain/handle-dependencies/get-compiler.js +1 -1
- package/dist/cli/domain/handle-dependencies/get-missing-dependencies.js +1 -1
- package/dist/cli/domain/handle-dependencies/index.js +1 -1
- package/dist/cli/domain/handle-dependencies/install-compiler.js +1 -1
- package/dist/cli/domain/handle-dependencies/install-missing-dependencies.js +1 -1
- package/dist/cli/domain/handle-dependencies/require-template.js +1 -1
- package/dist/cli/domain/init-template/index.js +1 -1
- package/dist/cli/domain/init-template/install-template.js +1 -1
- package/dist/cli/domain/init-template/scaffold.js +1 -1
- package/dist/cli/domain/local.d.ts +1 -1
- package/dist/cli/domain/local.js +1 -1
- package/dist/cli/domain/mock.js +1 -1
- package/dist/cli/domain/registry.d.ts +0 -2
- package/dist/cli/domain/registry.js +1 -1
- package/dist/cli/domain/url-parser.d.ts +0 -1
- package/dist/cli/domain/url-parser.js +1 -2
- package/dist/cli/domain/watch.js +1 -1
- package/dist/cli/facade/dev.d.ts +24 -28
- package/dist/cli/facade/package.d.ts +2 -2
- package/dist/cli/facade/publish.d.ts +10 -10
- package/dist/cli/programmatic-api.d.ts +14 -50
- package/dist/cli/validate-command.js +1 -1
- package/dist/components/oc-client/_package/package.json +4 -4
- package/dist/components/oc-client/_package/server.js +1 -1
- package/dist/components/oc-client/_package/src/oc-client.js +445 -490
- package/dist/components/oc-client/_package/src/oc-client.min.js +2 -2
- package/dist/components/oc-client/_package/src/oc-client.min.map +1 -1
- package/dist/components/oc-client/package.json +1 -1
- package/dist/components/oc-client/src/oc-client.js +445 -490
- package/dist/components/oc-client/src/oc-client.min.js +2 -2
- package/dist/components/oc-client/src/oc-client.min.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/registry/app-start.js +1 -1
- package/dist/registry/domain/authentication.js +2 -3
- package/dist/registry/domain/components-cache/components-list.js +1 -1
- package/dist/registry/domain/components-cache/index.js +1 -1
- package/dist/registry/domain/components-details.js +1 -1
- package/dist/registry/domain/events-handler.d.ts +0 -1
- package/dist/registry/domain/extract-package.d.ts +0 -1
- package/dist/registry/domain/extract-package.js +1 -1
- package/dist/registry/domain/get-package-json-from-temp-dir.js +1 -1
- package/dist/registry/domain/nested-renderer.js +1 -1
- package/dist/registry/domain/options-sanitiser.js +19 -2
- package/dist/registry/domain/plugins-initialiser.js +1 -2
- package/dist/registry/domain/register-templates.js +1 -1
- package/dist/registry/domain/repository.d.ts +2 -2
- package/dist/registry/domain/repository.js +2 -2
- package/dist/registry/domain/sanitiser.js +1 -2
- package/dist/registry/domain/storage-adapter.js +1 -1
- package/dist/registry/domain/url-builder.js +4 -5
- package/dist/registry/domain/validators/component-parameters.js +1 -1
- package/dist/registry/domain/validators/index.js +3 -3
- package/dist/registry/domain/validators/node-version.js +1 -1
- package/dist/registry/domain/validators/oc-cli-version.js +1 -1
- package/dist/registry/domain/validators/package-json-validator.js +1 -1
- package/dist/registry/domain/validators/plugins-requirements.js +1 -1
- package/dist/registry/domain/validators/registry-configuration.js +1 -1
- package/dist/registry/domain/validators/uploaded-package.d.ts +0 -1
- package/dist/registry/domain/validators/uploaded-package.js +1 -1
- package/dist/registry/domain/version-handler.js +2 -3
- package/dist/registry/index.d.ts +4 -5
- package/dist/registry/index.js +1 -1
- package/dist/registry/middleware/base-url-handler.js +1 -1
- package/dist/registry/middleware/compression.d.ts +6 -0
- package/dist/registry/middleware/compression.js +15 -0
- package/dist/registry/middleware/cors.js +1 -1
- package/dist/registry/middleware/discovery-handler.js +1 -1
- package/dist/registry/middleware/file-uploads.js +1 -1
- package/dist/registry/middleware/request-handler.js +1 -1
- package/dist/registry/router.js +2 -2
- package/dist/registry/routes/component-info.js +1 -1
- package/dist/registry/routes/component-preview.js +1 -1
- package/dist/registry/routes/component.js +1 -1
- package/dist/registry/routes/components.js +1 -1
- package/dist/registry/routes/dependencies.js +1 -1
- package/dist/registry/routes/helpers/apply-default-values.js +1 -1
- package/dist/registry/routes/helpers/get-available-dependencies.js +1 -1
- package/dist/registry/routes/helpers/get-component-fallback.d.ts +0 -1
- package/dist/registry/routes/helpers/get-component-fallback.js +3 -4
- package/dist/registry/routes/helpers/get-component-retrieving-info.d.ts +0 -1
- package/dist/registry/routes/helpers/get-component-retrieving-info.js +1 -1
- package/dist/registry/routes/helpers/get-component.d.ts +0 -1
- package/dist/registry/routes/helpers/get-component.js +1 -1
- package/dist/registry/routes/helpers/get-components-history.js +1 -1
- package/dist/registry/routes/helpers/is-url-discoverable.js +1 -1
- package/dist/registry/routes/index.js +1 -1
- package/dist/registry/routes/plugins.js +1 -1
- package/dist/registry/routes/publish.js +1 -1
- package/dist/registry/routes/static-redirector.js +15 -4
- package/dist/registry/views/index.js +1 -1
- package/dist/registry/views/info.js +1 -1
- package/dist/registry/views/partials/components-dependencies.js +1 -1
- package/dist/registry/views/partials/components-history.js +1 -1
- package/dist/registry/views/partials/components-list.js +1 -1
- package/dist/registry/views/partials/components-plugins.js +1 -1
- package/dist/registry/views/partials/components-templates.js +1 -1
- package/dist/registry/views/preview.js +1 -1
- package/dist/types.d.ts +5 -1
- package/dist/utils/clean-require.js +1 -1
- package/dist/utils/date-stringify.js +1 -1
- package/dist/utils/error-to-string.js +1 -1
- package/dist/utils/is-template-legacy.js +1 -1
- package/dist/utils/is-template-valid.js +1 -1
- package/dist/utils/module-exists.js +1 -1
- package/dist/utils/strip-version.js +1 -1
- package/logintervals.md +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
## Change Log
|
|
2
2
|
|
|
3
|
+
### v0.49.58
|
|
4
|
+
- [#1375](https://github.com/opencomponents/oc/pull/1375) compress compiled client
|
|
5
|
+
|
|
6
|
+
### v0.49.57
|
|
7
|
+
- [#1374](https://github.com/opencomponents/oc/pull/1374) serve client dev
|
|
8
|
+
|
|
3
9
|
### v0.49.56
|
|
4
10
|
- [#1372](https://github.com/opencomponents/oc/pull/1372) npm install after oc init
|
|
5
11
|
- [#1371](https://github.com/opencomponents/oc/pull/1371) dont install when packaging at all
|
package/dist/cli/domain/clean.js
CHANGED
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.fetchList = fetchList;
|
|
7
|
+
exports.remove = remove;
|
|
7
8
|
const node_path_1 = __importDefault(require("node:path"));
|
|
8
9
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
9
10
|
const get_components_by_dir_1 = __importDefault(require("./get-components-by-dir"));
|
|
@@ -15,10 +16,8 @@ async function fetchList(dirPath) {
|
|
|
15
16
|
const toRemove = list.map((folder) => node_path_1.default.join(folder, 'node_modules'));
|
|
16
17
|
return toRemove.filter(fs_extra_1.default.existsSync);
|
|
17
18
|
}
|
|
18
|
-
exports.fetchList = fetchList;
|
|
19
19
|
async function remove(list) {
|
|
20
20
|
for (const item of list) {
|
|
21
21
|
await fs_extra_1.default.remove(item);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
exports.remove = remove;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = getComponentsByDir;
|
|
6
7
|
const node_path_1 = __importDefault(require("node:path"));
|
|
7
8
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
8
9
|
function getComponentsByDir() {
|
|
@@ -38,4 +39,3 @@ function getComponentsByDir() {
|
|
|
38
39
|
}
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
|
-
exports.default = getComponentsByDir;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = getMockedPlugins;
|
|
6
7
|
const node_path_1 = __importDefault(require("node:path"));
|
|
7
8
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
8
9
|
const resources_1 = __importDefault(require("../../resources/"));
|
|
@@ -83,4 +84,3 @@ function getMockedPlugins(logger, componentsDir) {
|
|
|
83
84
|
plugins = plugins.concat(registerDynamicMocks(ocJsonLocation, content.mocks.plugins.dynamic ?? {}, logger));
|
|
84
85
|
return plugins;
|
|
85
86
|
}
|
|
86
|
-
exports.default = getMockedPlugins;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = ensureCompilerIsDeclaredAsDevDependency;
|
|
6
7
|
const resources_1 = __importDefault(require("../../../resources"));
|
|
7
8
|
function ensureCompilerIsDeclaredAsDevDependency(options) {
|
|
8
9
|
const { componentPath, pkg, template } = options;
|
|
@@ -12,4 +13,3 @@ function ensureCompilerIsDeclaredAsDevDependency(options) {
|
|
|
12
13
|
throw resources_1.default.errors.cli.TEMPLATE_DEP_MISSING(template, componentPath);
|
|
13
14
|
return compilerDep;
|
|
14
15
|
}
|
|
15
|
-
exports.default = ensureCompilerIsDeclaredAsDevDependency;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = getCompiler;
|
|
6
7
|
const node_path_1 = __importDefault(require("node:path"));
|
|
7
8
|
const clean_require_1 = __importDefault(require("../../../utils/clean-require"));
|
|
8
9
|
const install_compiler_1 = __importDefault(require("./install-compiler"));
|
|
@@ -25,4 +26,3 @@ function getCompiler(options) {
|
|
|
25
26
|
};
|
|
26
27
|
return (0, install_compiler_1.default)(installOptions);
|
|
27
28
|
}
|
|
28
|
-
exports.default = getCompiler;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = getMissingDependencies;
|
|
6
7
|
const node_path_1 = __importDefault(require("node:path"));
|
|
7
8
|
const module_exists_1 = __importDefault(require("../../../utils/module-exists"));
|
|
8
9
|
function getMissingDependencies(dependencies = {}) {
|
|
@@ -15,4 +16,3 @@ function getMissingDependencies(dependencies = {}) {
|
|
|
15
16
|
}
|
|
16
17
|
return missing;
|
|
17
18
|
}
|
|
18
|
-
exports.default = getMissingDependencies;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = handleDependencies;
|
|
6
7
|
const node_path_1 = __importDefault(require("node:path"));
|
|
7
8
|
const builtin_modules_1 = __importDefault(require("builtin-modules"));
|
|
8
9
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
@@ -62,4 +63,3 @@ async function handleDependencies(options) {
|
|
|
62
63
|
}
|
|
63
64
|
return result;
|
|
64
65
|
}
|
|
65
|
-
exports.default = handleDependencies;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = installCompiler;
|
|
29
30
|
const index_1 = __importDefault(require("../../../resources/index"));
|
|
30
31
|
const clean_require_1 = __importDefault(require("../../../utils/clean-require"));
|
|
31
32
|
const is_template_valid_1 = __importDefault(require("../../../utils/is-template-valid"));
|
|
@@ -55,4 +56,3 @@ async function installCompiler(options) {
|
|
|
55
56
|
throw errorMsg;
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
exports.default = installCompiler;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = installMissingDependencies;
|
|
29
30
|
const node_path_1 = __importDefault(require("node:path"));
|
|
30
31
|
const index_1 = __importDefault(require("../../../resources/index"));
|
|
31
32
|
const npm = __importStar(require("../../../utils/npm-utils"));
|
|
@@ -60,4 +61,3 @@ async function installMissingDependencies(options) {
|
|
|
60
61
|
throw index_1.default.errors.cli.DEPENDENCIES_INSTALL_FAIL;
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
|
-
exports.default = installMissingDependencies;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = requireTemplate;
|
|
6
7
|
const node_path_1 = __importDefault(require("node:path"));
|
|
7
8
|
const resources_1 = __importDefault(require("../../../resources"));
|
|
8
9
|
const clean_require_1 = __importDefault(require("../../../utils/clean-require"));
|
|
@@ -36,4 +37,3 @@ function requireTemplate(template, options) {
|
|
|
36
37
|
}
|
|
37
38
|
return ocTemplate;
|
|
38
39
|
}
|
|
39
|
-
exports.default = requireTemplate;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = initTemplate;
|
|
29
30
|
const node_path_1 = __importDefault(require("node:path"));
|
|
30
31
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
31
32
|
const npm = __importStar(require("../../../utils/npm-utils"));
|
|
@@ -46,4 +47,3 @@ async function initTemplate(options) {
|
|
|
46
47
|
});
|
|
47
48
|
return { ok: true };
|
|
48
49
|
}
|
|
49
|
-
exports.default = initTemplate;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = installTemplate;
|
|
29
30
|
const try_require_1 = __importDefault(require("try-require"));
|
|
30
31
|
const resources_1 = __importDefault(require("../../../resources"));
|
|
31
32
|
const is_template_valid_1 = __importDefault(require("../../../utils/is-template-valid"));
|
|
@@ -55,4 +56,3 @@ async function installTemplate(options) {
|
|
|
55
56
|
throw errorMessage;
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
exports.default = installTemplate;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = scaffold;
|
|
6
7
|
const node_path_1 = __importDefault(require("node:path"));
|
|
7
8
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
8
9
|
const resources_1 = __importDefault(require("../../../resources"));
|
|
@@ -30,4 +31,3 @@ async function scaffold(options) {
|
|
|
30
31
|
throw resources_1.default.errors.cli.scaffoldError(url, String(error));
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
|
-
exports.default = scaffold;
|
|
@@ -4,7 +4,7 @@ export default function local(): {
|
|
|
4
4
|
clean: typeof clean;
|
|
5
5
|
cleanup(compressedPackagePath: string): Promise<void>;
|
|
6
6
|
compress(input: string, output: string): Promise<void>;
|
|
7
|
-
getComponentsByDir: (componentsDir: string, componentsToRun?: string[]
|
|
7
|
+
getComponentsByDir: (componentsDir: string, componentsToRun?: string[]) => Promise<string[]>;
|
|
8
8
|
init(options: {
|
|
9
9
|
componentName: string;
|
|
10
10
|
logger: Logger;
|
package/dist/cli/domain/local.js
CHANGED
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = local;
|
|
29
30
|
const node_util_1 = require("node:util");
|
|
30
31
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
31
32
|
const targz_1 = __importDefault(require("targz"));
|
|
@@ -81,4 +82,3 @@ function local() {
|
|
|
81
82
|
package: (0, package_components_1.default)()
|
|
82
83
|
};
|
|
83
84
|
}
|
|
84
|
-
exports.default = local;
|
package/dist/cli/domain/mock.js
CHANGED
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = mock;
|
|
6
7
|
const node_path_1 = __importDefault(require("node:path"));
|
|
7
8
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
8
9
|
const settings_1 = __importDefault(require("../../resources/settings"));
|
|
@@ -30,4 +31,3 @@ function mock() {
|
|
|
30
31
|
return fs_extra_1.default.writeJson(settings_1.default.configFile.src, localConfig, { spaces: 2 });
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
|
-
exports.default = mock;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = registry;
|
|
29
30
|
const node_path_1 = __importDefault(require("node:path"));
|
|
30
31
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
31
32
|
const got_1 = __importDefault(require("got"));
|
|
@@ -140,4 +141,3 @@ function registry(opts = {}) {
|
|
|
140
141
|
}
|
|
141
142
|
};
|
|
142
143
|
}
|
|
143
|
-
exports.default = registry;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.parse =
|
|
6
|
+
exports.parse = parse;
|
|
7
7
|
const node_querystring_1 = __importDefault(require("node:querystring"));
|
|
8
8
|
const node_url_1 = __importDefault(require("node:url"));
|
|
9
9
|
const removeFinalSlashes = (s) => {
|
|
@@ -28,4 +28,3 @@ function parse(parsed) {
|
|
|
28
28
|
version: requestedVersion
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
exports.parse = parse;
|
package/dist/cli/domain/watch.js
CHANGED
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = watch;
|
|
6
7
|
const node_path_1 = __importDefault(require("node:path"));
|
|
7
8
|
const chokidar_1 = __importDefault(require("chokidar"));
|
|
8
9
|
const settings_1 = __importDefault(require("../../resources/settings"));
|
|
@@ -23,7 +24,6 @@ function watch(dirs, baseDir, changed) {
|
|
|
23
24
|
.on('unlink', onChange)
|
|
24
25
|
.on('error', changed);
|
|
25
26
|
}
|
|
26
|
-
exports.default = watch;
|
|
27
27
|
function escapeRegularExpression(text) {
|
|
28
28
|
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
|
|
29
29
|
}
|
package/dist/cli/facade/dev.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="express" />
|
|
3
|
-
/// <reference types="node/http" />
|
|
4
|
-
/// <reference types="got/dist/source/core/utils/timed-out" />
|
|
5
1
|
import type { Local } from '../domain/local';
|
|
6
2
|
import type { Logger } from '../logger';
|
|
7
3
|
declare const dev: ({ local, logger }: {
|
|
@@ -11,17 +7,17 @@ declare const dev: ({ local, logger }: {
|
|
|
11
7
|
(opts: {
|
|
12
8
|
prefix: string;
|
|
13
9
|
dirPath: string;
|
|
14
|
-
port?: number
|
|
10
|
+
port?: number;
|
|
15
11
|
baseUrl: string;
|
|
16
12
|
fallbackRegistryUrl: string;
|
|
17
|
-
hotReloading?: boolean
|
|
18
|
-
postRequestPayloadSize?: string
|
|
19
|
-
components?: string[]
|
|
20
|
-
watch?: boolean
|
|
21
|
-
verbose?: boolean
|
|
22
|
-
production?: boolean
|
|
13
|
+
hotReloading?: boolean;
|
|
14
|
+
postRequestPayloadSize?: string;
|
|
15
|
+
components?: string[];
|
|
16
|
+
watch?: boolean;
|
|
17
|
+
verbose?: boolean;
|
|
18
|
+
production?: boolean;
|
|
23
19
|
}): Promise<{
|
|
24
|
-
close: (callback: (err?:
|
|
20
|
+
close: (callback: (err?: Error | undefined | string) => void) => void | import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>;
|
|
25
21
|
on: <T extends keyof {
|
|
26
22
|
error: {
|
|
27
23
|
code: string;
|
|
@@ -40,7 +36,7 @@ declare const dev: ({ local, logger }: {
|
|
|
40
36
|
'data-provider-error': {
|
|
41
37
|
name: string;
|
|
42
38
|
version: string;
|
|
43
|
-
parameters: Record<string, string |
|
|
39
|
+
parameters: Record<string, string | boolean | number>;
|
|
44
40
|
requestVersion: string;
|
|
45
41
|
status: number;
|
|
46
42
|
error: Error;
|
|
@@ -63,33 +59,33 @@ declare const dev: ({ local, logger }: {
|
|
|
63
59
|
'data-provider-error': {
|
|
64
60
|
name: string;
|
|
65
61
|
version: string;
|
|
66
|
-
parameters: Record<string, string |
|
|
62
|
+
parameters: Record<string, string | boolean | number>;
|
|
67
63
|
requestVersion: string;
|
|
68
64
|
status: number;
|
|
69
65
|
error: Error;
|
|
70
66
|
};
|
|
71
67
|
}[T]) => void) => void;
|
|
72
|
-
register: <
|
|
68
|
+
register: <T = any>(plugin: Omit<import("../../types").Plugin<T>, "callback">, callback?: ((...args: any[]) => void) | undefined) => void;
|
|
73
69
|
start: (callback: (err: unknown, data?: {
|
|
74
70
|
app: import("express").Express;
|
|
75
|
-
server: import("http").Server
|
|
71
|
+
server: import("http").Server;
|
|
76
72
|
} | undefined) => void) => Promise<void>;
|
|
77
73
|
app: import("express").Express;
|
|
78
74
|
}>;
|
|
79
75
|
(opts: {
|
|
80
76
|
prefix: string;
|
|
81
77
|
dirPath: string;
|
|
82
|
-
port?: number
|
|
78
|
+
port?: number;
|
|
83
79
|
baseUrl: string;
|
|
84
80
|
fallbackRegistryUrl: string;
|
|
85
|
-
hotReloading?: boolean
|
|
86
|
-
postRequestPayloadSize?: string
|
|
87
|
-
components?: string[]
|
|
88
|
-
watch?: boolean
|
|
89
|
-
verbose?: boolean
|
|
90
|
-
production?: boolean
|
|
81
|
+
hotReloading?: boolean;
|
|
82
|
+
postRequestPayloadSize?: string;
|
|
83
|
+
components?: string[];
|
|
84
|
+
watch?: boolean;
|
|
85
|
+
verbose?: boolean;
|
|
86
|
+
production?: boolean;
|
|
91
87
|
}, arguments__1: (error: unknown, value: {
|
|
92
|
-
close: (callback: (err?:
|
|
88
|
+
close: (callback: (err?: Error | undefined | string) => void) => void | import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>;
|
|
93
89
|
on: <T extends keyof {
|
|
94
90
|
error: {
|
|
95
91
|
code: string;
|
|
@@ -108,7 +104,7 @@ declare const dev: ({ local, logger }: {
|
|
|
108
104
|
'data-provider-error': {
|
|
109
105
|
name: string;
|
|
110
106
|
version: string;
|
|
111
|
-
parameters: Record<string, string |
|
|
107
|
+
parameters: Record<string, string | boolean | number>;
|
|
112
108
|
requestVersion: string;
|
|
113
109
|
status: number;
|
|
114
110
|
error: Error;
|
|
@@ -131,16 +127,16 @@ declare const dev: ({ local, logger }: {
|
|
|
131
127
|
'data-provider-error': {
|
|
132
128
|
name: string;
|
|
133
129
|
version: string;
|
|
134
|
-
parameters: Record<string, string |
|
|
130
|
+
parameters: Record<string, string | boolean | number>;
|
|
135
131
|
requestVersion: string;
|
|
136
132
|
status: number;
|
|
137
133
|
error: Error;
|
|
138
134
|
};
|
|
139
135
|
}[T]) => void) => void;
|
|
140
|
-
register: <
|
|
136
|
+
register: <T = any>(plugin: Omit<import("../../types").Plugin<T>, "callback">, callback?: ((...args: any[]) => void) | undefined) => void;
|
|
141
137
|
start: (callback: (err: unknown, data?: {
|
|
142
138
|
app: import("express").Express;
|
|
143
|
-
server: import("http").Server
|
|
139
|
+
server: import("http").Server;
|
|
144
140
|
} | undefined) => void) => Promise<void>;
|
|
145
141
|
app: import("express").Express;
|
|
146
142
|
}) => void): void;
|
|
@@ -7,11 +7,11 @@ declare const cliPackage: ({ local, logger }: {
|
|
|
7
7
|
}) => {
|
|
8
8
|
(opts: {
|
|
9
9
|
componentPath: string;
|
|
10
|
-
compress?: boolean
|
|
10
|
+
compress?: boolean;
|
|
11
11
|
}): Promise<Component>;
|
|
12
12
|
(opts: {
|
|
13
13
|
componentPath: string;
|
|
14
|
-
compress?: boolean
|
|
14
|
+
compress?: boolean;
|
|
15
15
|
}, arguments__1: (error: unknown, value: Component) => void): void;
|
|
16
16
|
};
|
|
17
17
|
export default cliPackage;
|
|
@@ -8,19 +8,19 @@ declare const publish: ({ logger, registry, local }: {
|
|
|
8
8
|
}) => {
|
|
9
9
|
(opts: {
|
|
10
10
|
componentPath: string;
|
|
11
|
-
skipPackage?: boolean
|
|
12
|
-
dryRun?: boolean
|
|
13
|
-
username?: string
|
|
14
|
-
password?: string
|
|
15
|
-
registries?: string[]
|
|
11
|
+
skipPackage?: boolean;
|
|
12
|
+
dryRun?: boolean;
|
|
13
|
+
username?: string;
|
|
14
|
+
password?: string;
|
|
15
|
+
registries?: string[];
|
|
16
16
|
}): Promise<void>;
|
|
17
17
|
(opts: {
|
|
18
18
|
componentPath: string;
|
|
19
|
-
skipPackage?: boolean
|
|
20
|
-
dryRun?: boolean
|
|
21
|
-
username?: string
|
|
22
|
-
password?: string
|
|
23
|
-
registries?: string[]
|
|
19
|
+
skipPackage?: boolean;
|
|
20
|
+
dryRun?: boolean;
|
|
21
|
+
username?: string;
|
|
22
|
+
password?: string;
|
|
23
|
+
registries?: string[];
|
|
24
24
|
}, arguments__1: (error: unknown, value: void) => void): void;
|
|
25
25
|
};
|
|
26
26
|
export default publish;
|
|
@@ -11,74 +11,38 @@ import registryRemove from './facade/registry-remove';
|
|
|
11
11
|
type Options<T extends (...args: any) => any> = Parameters<ReturnType<T>>[0];
|
|
12
12
|
type Cb<T extends (...args: any) => any> = Parameters<ReturnType<T>>[1];
|
|
13
13
|
declare const _default: {
|
|
14
|
-
dev: ({ logger, ...options }: {
|
|
15
|
-
prefix: string;
|
|
16
|
-
dirPath: string;
|
|
17
|
-
port?: number | undefined;
|
|
18
|
-
baseUrl: string;
|
|
19
|
-
fallbackRegistryUrl: string;
|
|
20
|
-
hotReloading?: boolean | undefined;
|
|
21
|
-
postRequestPayloadSize?: string | undefined;
|
|
22
|
-
components?: string[] | undefined;
|
|
23
|
-
watch?: boolean | undefined;
|
|
24
|
-
verbose?: boolean | undefined;
|
|
25
|
-
production?: boolean | undefined;
|
|
26
|
-
} & {
|
|
14
|
+
dev: ({ logger, ...options }: Options<typeof dev> & {
|
|
27
15
|
logger: Logger;
|
|
28
16
|
}, cb: Cb<typeof dev>) => void;
|
|
29
|
-
init: ({ logger, ...options }: {
|
|
30
|
-
componentName: string;
|
|
31
|
-
componentPath: string;
|
|
32
|
-
templateType: string;
|
|
33
|
-
} & {
|
|
17
|
+
init: ({ logger, ...options }: Options<typeof init> & {
|
|
34
18
|
logger: Logger;
|
|
35
19
|
}, cb: Cb<typeof init>) => void;
|
|
36
|
-
mock: ({ logger, ...options }: {
|
|
37
|
-
targetType: string;
|
|
38
|
-
targetValue: string;
|
|
39
|
-
targetName: string;
|
|
40
|
-
} & {
|
|
20
|
+
mock: ({ logger, ...options }: Options<typeof mock> & {
|
|
41
21
|
logger: Logger;
|
|
42
22
|
}, cb: Cb<typeof mock>) => void;
|
|
43
|
-
package: ({ logger, ...options }: {
|
|
44
|
-
componentPath: string;
|
|
45
|
-
compress?: boolean | undefined;
|
|
46
|
-
} & {
|
|
23
|
+
package: ({ logger, ...options }: Options<typeof packageScript> & {
|
|
47
24
|
logger: Logger;
|
|
48
25
|
}, cb: Cb<typeof packageScript>) => void;
|
|
49
|
-
publish: ({ logger, ...options }: {
|
|
50
|
-
componentPath: string;
|
|
51
|
-
skipPackage?: boolean | undefined;
|
|
52
|
-
dryRun?: boolean | undefined;
|
|
53
|
-
username?: string | undefined;
|
|
54
|
-
password?: string | undefined;
|
|
55
|
-
registries?: string[] | undefined;
|
|
56
|
-
} & {
|
|
26
|
+
publish: ({ logger, ...options }: Options<typeof publish> & {
|
|
57
27
|
logger: Logger;
|
|
58
|
-
registry?: string
|
|
28
|
+
registry?: string;
|
|
59
29
|
}, cb: Cb<typeof publish>) => void;
|
|
60
|
-
preview: ({ logger, ...options }: {
|
|
61
|
-
componentHref: string;
|
|
62
|
-
} & {
|
|
30
|
+
preview: ({ logger, ...options }: Options<typeof preview> & {
|
|
63
31
|
logger: Logger;
|
|
64
|
-
registry?: string
|
|
32
|
+
registry?: string;
|
|
65
33
|
}, cb: Cb<typeof preview>) => void;
|
|
66
34
|
registry: {
|
|
67
|
-
add: ({ logger, ...options }: {
|
|
68
|
-
registryUrl: string;
|
|
69
|
-
} & {
|
|
35
|
+
add: ({ logger, ...options }: Options<typeof registryAdd> & {
|
|
70
36
|
logger: Logger;
|
|
71
|
-
registry?: string
|
|
37
|
+
registry?: string;
|
|
72
38
|
}, cb: Cb<typeof registryAdd>) => void;
|
|
73
|
-
ls: ({ logger, ...options }: {
|
|
39
|
+
ls: ({ logger, ...options }: Options<typeof registryLs> & {
|
|
74
40
|
logger: Logger;
|
|
75
|
-
registry?: string
|
|
41
|
+
registry?: string;
|
|
76
42
|
}, cb: Cb<typeof registryLs>) => void;
|
|
77
|
-
remove: ({ logger, ...options }: {
|
|
78
|
-
registryUrl: string;
|
|
79
|
-
} & {
|
|
43
|
+
remove: ({ logger, ...options }: Options<typeof registryRemove> & {
|
|
80
44
|
logger: Logger;
|
|
81
|
-
registry?: string
|
|
45
|
+
registry?: string;
|
|
82
46
|
}, cb: Cb<typeof registryRemove>) => void;
|
|
83
47
|
};
|
|
84
48
|
};
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = validateCommand;
|
|
6
7
|
const resources_1 = __importDefault(require("../resources"));
|
|
7
8
|
const commands_1 = __importDefault(require("./commands"));
|
|
8
9
|
function validateCommand(argv, level) {
|
|
@@ -15,4 +16,3 @@ function validateCommand(argv, level) {
|
|
|
15
16
|
}
|
|
16
17
|
return true;
|
|
17
18
|
}
|
|
18
|
-
exports.default = validateCommand;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oc-client",
|
|
3
3
|
"description": "The OpenComponents client-side javascript client",
|
|
4
|
-
"version": "0.49.
|
|
4
|
+
"version": "0.49.58",
|
|
5
5
|
"repository": "https://github.com/opencomponents/oc/tree/master/components/oc-client",
|
|
6
6
|
"author": "Matteo Figus <matteofigus@gmail.com>",
|
|
7
7
|
"oc": {
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
],
|
|
23
23
|
"dataProvider": {
|
|
24
24
|
"type": "node.js",
|
|
25
|
-
"hashKey": "
|
|
25
|
+
"hashKey": "738a409a156b7872e8a97842c5a9ccffe9d1c8d1",
|
|
26
26
|
"src": "server.js",
|
|
27
27
|
"size": 613
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
"version": "0.49.
|
|
30
|
+
"version": "0.49.58",
|
|
31
31
|
"packaged": true,
|
|
32
|
-
"date":
|
|
32
|
+
"date": 1725824656617
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"oc-template-es6-compiler": "^1.0.1"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=(t,s)=>{const{staticPath:e,templates:a}=t;return s(null,{staticPath:e,templates:a})},o=(t,s)=>{r(t,(e,a)=>{if(e)return s(e);if(a==null)return s(null,{__oc_emptyResponse:!0});const n=t.action?a:Object.assign({},a,{_staticPath:t.staticPath,_baseUrl:t.baseUrl,_componentName:"oc-client",_componentVersion:"0.49.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=(t,s)=>{const{staticPath:e,templates:a}=t;return s(null,{staticPath:e,templates:a})},o=(t,s)=>{r(t,(e,a)=>{if(e)return s(e);if(a==null)return s(null,{__oc_emptyResponse:!0});const n=t.action?a:Object.assign({},a,{_staticPath:t.staticPath,_baseUrl:t.baseUrl,_componentName:"oc-client",_componentVersion:"0.49.58"}),c=t.staticPath.indexOf("http")===0?t.staticPath:"https:"+t.staticPath;return s(null,Object.assign({},{component:{key:"52c0b54c351e404a3716b5e612b758626322e81b",src:c+"template.js",props:n}}))})};exports.data=o;
|