@osdk/maker 0.11.0-beta.2 → 0.11.0-beta.3
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/build/browser/api/defineImportSpt.js +3 -1
- package/build/browser/api/defineImportSpt.js.map +1 -1
- package/build/browser/api/overall.test.js +105 -0
- package/build/browser/api/overall.test.js.map +1 -1
- package/build/browser/cli/main.js +1 -1
- package/build/cjs/index.cjs +4 -2
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +1 -0
- package/build/esm/api/defineImportSpt.js +3 -1
- package/build/esm/api/defineImportSpt.js.map +1 -1
- package/build/esm/api/overall.test.js +105 -0
- package/build/esm/api/overall.test.js.map +1 -1
- package/build/esm/cli/main.js +1 -1
- package/build/types/api/defineImportSpt.d.ts +1 -0
- package/build/types/api/defineImportSpt.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -23,7 +23,7 @@ import { hideBin } from "yargs/helpers";
|
|
|
23
23
|
import { defineOntology } from "../api/defineOntology.js";
|
|
24
24
|
const apiNamespaceRegex = /^[a-z0-9-]+(\.[a-z0-9-]+)*\.$/;
|
|
25
25
|
export default async function main(args = process.argv) {
|
|
26
|
-
const commandLineOpts = await yargs(hideBin(args)).version("0.11.0-beta.
|
|
26
|
+
const commandLineOpts = await yargs(hideBin(args)).version("0.11.0-beta.3" ?? "").wrap(Math.min(150, yargs().terminalWidth())).strict().help().options({
|
|
27
27
|
input: {
|
|
28
28
|
alias: "i",
|
|
29
29
|
describe: "Input file",
|
package/build/cjs/index.cjs
CHANGED
|
@@ -1220,7 +1220,7 @@ function getEntityTypeName(type) {
|
|
|
1220
1220
|
// src/cli/main.ts
|
|
1221
1221
|
var apiNamespaceRegex = /^[a-z0-9-]+(\.[a-z0-9-]+)*\.$/;
|
|
1222
1222
|
async function main(args = process.argv) {
|
|
1223
|
-
const commandLineOpts = await yargs__default.default(helpers.hideBin(args)).version("0.11.0-beta.
|
|
1223
|
+
const commandLineOpts = await yargs__default.default(helpers.hideBin(args)).version("0.11.0-beta.3").wrap(Math.min(150, yargs__default.default().terminalWidth())).strict().help().options({
|
|
1224
1224
|
input: {
|
|
1225
1225
|
alias: "i",
|
|
1226
1226
|
describe: "Input file",
|
|
@@ -1720,7 +1720,8 @@ function importSharedPropertyType(opts) {
|
|
|
1720
1720
|
const {
|
|
1721
1721
|
apiName,
|
|
1722
1722
|
packageName,
|
|
1723
|
-
typeHint
|
|
1723
|
+
typeHint,
|
|
1724
|
+
array
|
|
1724
1725
|
} = opts;
|
|
1725
1726
|
const fullApiName = packageName === void 0 ? apiName : `${packageName}.${apiName}`;
|
|
1726
1727
|
if (packageName !== void 0) {
|
|
@@ -1731,6 +1732,7 @@ function importSharedPropertyType(opts) {
|
|
|
1731
1732
|
apiName: fullApiName,
|
|
1732
1733
|
type: typeHint,
|
|
1733
1734
|
nonNameSpacedApiName: apiName,
|
|
1735
|
+
array: array ?? false,
|
|
1734
1736
|
__type: OntologyEntityTypeEnum.SHARED_PROPERTY_TYPE
|
|
1735
1737
|
};
|
|
1736
1738
|
importOntologyEntity(spt);
|