@accordproject/concerto-util 4.2.0 → 5.0.0-beta.2
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/dist/baseexception.d.ts +2 -1
- package/dist/baseexception.js +5 -2
- package/dist/basefileexception.d.ts +3 -2
- package/dist/basefileexception.js +10 -4
- package/dist/esm/baseexception.mjs +13 -0
- package/dist/esm/baseexception.mjs.map +7 -0
- package/dist/esm/basefileexception.mjs +14 -0
- package/dist/esm/basefileexception.mjs.map +7 -0
- package/dist/esm/chunk-3RJ6JXLX.mjs +29 -0
- package/dist/esm/chunk-3RJ6JXLX.mjs.map +7 -0
- package/dist/esm/chunk-3U4T7O4P.mjs +41 -0
- package/dist/esm/chunk-3U4T7O4P.mjs.map +7 -0
- package/dist/esm/chunk-D4MNWWBB.mjs +43 -0
- package/dist/esm/chunk-D4MNWWBB.mjs.map +7 -0
- package/dist/esm/chunk-DTVQ7VXD.mjs +30 -0
- package/dist/esm/chunk-DTVQ7VXD.mjs.map +7 -0
- package/dist/esm/chunk-FHUVVHGR.mjs +48 -0
- package/dist/esm/chunk-FHUVVHGR.mjs.map +7 -0
- package/dist/esm/chunk-FK2LDKS6.mjs +36 -0
- package/dist/esm/chunk-FK2LDKS6.mjs.map +7 -0
- package/dist/esm/chunk-G6IDW2UD.mjs +183 -0
- package/dist/esm/chunk-G6IDW2UD.mjs.map +7 -0
- package/dist/esm/chunk-GOLEPEBI.mjs +56 -0
- package/dist/esm/chunk-GOLEPEBI.mjs.map +7 -0
- package/dist/esm/chunk-I33X6SGY.mjs +70 -0
- package/dist/esm/chunk-I33X6SGY.mjs.map +7 -0
- package/dist/esm/chunk-K4OOJFK5.mjs +93 -0
- package/dist/esm/chunk-K4OOJFK5.mjs.map +7 -0
- package/dist/esm/chunk-LPNGJFU2.mjs +22 -0
- package/dist/esm/chunk-LPNGJFU2.mjs.map +7 -0
- package/dist/esm/chunk-PBL5N3A2.mjs +33 -0
- package/dist/esm/chunk-PBL5N3A2.mjs.map +7 -0
- package/dist/esm/chunk-PMP2SMHG.mjs +17 -0
- package/dist/esm/chunk-PMP2SMHG.mjs.map +7 -0
- package/dist/esm/chunk-Q6G4HQJ7.mjs +151 -0
- package/dist/esm/chunk-Q6G4HQJ7.mjs.map +7 -0
- package/dist/esm/chunk-RBUQLLXW.mjs +51 -0
- package/dist/esm/chunk-RBUQLLXW.mjs.map +7 -0
- package/dist/esm/chunk-T6ZBQYEB.mjs +97 -0
- package/dist/esm/chunk-T6ZBQYEB.mjs.map +7 -0
- package/dist/esm/chunk-TP3CT6S4.mjs +35 -0
- package/dist/esm/chunk-TP3CT6S4.mjs.map +7 -0
- package/dist/esm/chunk-WPVG6LP3.mjs +63 -0
- package/dist/esm/chunk-WPVG6LP3.mjs.map +7 -0
- package/dist/esm/chunk-YQVUNOO6.mjs +93 -0
- package/dist/esm/chunk-YQVUNOO6.mjs.map +7 -0
- package/dist/esm/errorcodes.mjs +22 -0
- package/dist/esm/errorcodes.mjs.map +7 -0
- package/dist/esm/filedownloader.mjs +12 -0
- package/dist/esm/filedownloader.mjs.map +7 -0
- package/dist/esm/filewriter.mjs +13 -0
- package/dist/esm/filewriter.mjs.map +7 -0
- package/dist/esm/identifiers.mjs +12 -0
- package/dist/esm/identifiers.mjs.map +7 -0
- package/dist/esm/index.mjs +78 -0
- package/dist/esm/index.mjs.map +7 -0
- package/dist/esm/inmemorywriter.mjs +13 -0
- package/dist/esm/inmemorywriter.mjs.map +7 -0
- package/dist/esm/label.mjs +12 -0
- package/dist/esm/label.mjs.map +7 -0
- package/dist/esm/loaders/compositefileloader.mjs +12 -0
- package/dist/esm/loaders/compositefileloader.mjs.map +7 -0
- package/dist/esm/loaders/defaultfileloader.mjs +15 -0
- package/dist/esm/loaders/defaultfileloader.mjs.map +7 -0
- package/dist/esm/loaders/fileloader.mjs +3 -0
- package/dist/esm/loaders/fileloader.mjs.map +7 -0
- package/dist/esm/loaders/githubfileloader.mjs +13 -0
- package/dist/esm/loaders/githubfileloader.mjs.map +7 -0
- package/dist/esm/loaders/httpfileloader.mjs +12 -0
- package/dist/esm/loaders/httpfileloader.mjs.map +7 -0
- package/dist/esm/logger.mjs +12 -0
- package/dist/esm/logger.mjs.map +7 -0
- package/dist/esm/modelwriter.mjs +10 -0
- package/dist/esm/modelwriter.mjs.map +7 -0
- package/dist/esm/null.mjs +12 -0
- package/dist/esm/null.mjs.map +7 -0
- package/dist/esm/typedstack.mjs +12 -0
- package/dist/esm/typedstack.mjs.map +7 -0
- package/dist/esm/warning.mjs +10 -0
- package/dist/esm/warning.mjs.map +7 -0
- package/dist/esm/writer.mjs +12 -0
- package/dist/esm/writer.mjs.map +7 -0
- package/dist/esm-browser/baseexception.mjs +11 -0
- package/dist/esm-browser/baseexception.mjs.map +7 -0
- package/dist/esm-browser/basefileexception.mjs +12 -0
- package/dist/esm-browser/basefileexception.mjs.map +7 -0
- package/dist/esm-browser/chunk-3XGAUT4O.mjs +100 -0
- package/dist/esm-browser/chunk-3XGAUT4O.mjs.map +7 -0
- package/dist/esm-browser/chunk-4X5DBZDM.mjs +24 -0
- package/dist/esm-browser/chunk-4X5DBZDM.mjs.map +7 -0
- package/dist/esm-browser/chunk-6SOOHVQB.mjs +65 -0
- package/dist/esm-browser/chunk-6SOOHVQB.mjs.map +7 -0
- package/dist/esm-browser/chunk-7DYPHXUR.mjs +50 -0
- package/dist/esm-browser/chunk-7DYPHXUR.mjs.map +7 -0
- package/dist/esm-browser/chunk-7LYWQ57N.mjs +461 -0
- package/dist/esm-browser/chunk-7LYWQ57N.mjs.map +7 -0
- package/dist/esm-browser/chunk-BDMF4RRF.mjs +72 -0
- package/dist/esm-browser/chunk-BDMF4RRF.mjs.map +7 -0
- package/dist/esm-browser/chunk-BSBOEFWN.mjs +57 -0
- package/dist/esm-browser/chunk-BSBOEFWN.mjs.map +7 -0
- package/dist/esm-browser/chunk-DOL2YKDZ.mjs +26 -0
- package/dist/esm-browser/chunk-DOL2YKDZ.mjs.map +7 -0
- package/dist/esm-browser/chunk-EGOFDABS.mjs +62 -0
- package/dist/esm-browser/chunk-EGOFDABS.mjs.map +7 -0
- package/dist/esm-browser/chunk-LZTTRWN3.mjs +153 -0
- package/dist/esm-browser/chunk-LZTTRWN3.mjs.map +7 -0
- package/dist/esm-browser/chunk-MCUSZIV7.mjs +41 -0
- package/dist/esm-browser/chunk-MCUSZIV7.mjs.map +7 -0
- package/dist/esm-browser/chunk-N42BHUZ6.mjs +35 -0
- package/dist/esm-browser/chunk-N42BHUZ6.mjs.map +7 -0
- package/dist/esm-browser/chunk-NAP47VIV.mjs +36 -0
- package/dist/esm-browser/chunk-NAP47VIV.mjs.map +7 -0
- package/dist/esm-browser/chunk-NQ5PDAAD.mjs +95 -0
- package/dist/esm-browser/chunk-NQ5PDAAD.mjs.map +7 -0
- package/dist/esm-browser/chunk-NSJTBLWA.mjs +71 -0
- package/dist/esm-browser/chunk-NSJTBLWA.mjs.map +7 -0
- package/dist/esm-browser/chunk-R6CSKES3.mjs +183 -0
- package/dist/esm-browser/chunk-R6CSKES3.mjs.map +7 -0
- package/dist/esm-browser/chunk-S52XDDAF.mjs +30 -0
- package/dist/esm-browser/chunk-S52XDDAF.mjs.map +7 -0
- package/dist/esm-browser/chunk-SU6SG5PJ.mjs +45 -0
- package/dist/esm-browser/chunk-SU6SG5PJ.mjs.map +7 -0
- package/dist/esm-browser/chunk-WCGRUR5U.mjs +30 -0
- package/dist/esm-browser/chunk-WCGRUR5U.mjs.map +7 -0
- package/dist/esm-browser/chunk-YJQCJTA7.mjs +53 -0
- package/dist/esm-browser/chunk-YJQCJTA7.mjs.map +7 -0
- package/dist/esm-browser/chunk-YURYZDD2.mjs +453 -0
- package/dist/esm-browser/chunk-YURYZDD2.mjs.map +7 -0
- package/dist/esm-browser/errorcodes.mjs +20 -0
- package/dist/esm-browser/errorcodes.mjs.map +7 -0
- package/dist/esm-browser/filedownloader.mjs +11 -0
- package/dist/esm-browser/filedownloader.mjs.map +7 -0
- package/dist/esm-browser/filewriter.mjs +12 -0
- package/dist/esm-browser/filewriter.mjs.map +7 -0
- package/dist/esm-browser/identifiers.mjs +10 -0
- package/dist/esm-browser/identifiers.mjs.map +7 -0
- package/dist/esm-browser/index.mjs +83 -0
- package/dist/esm-browser/index.mjs.map +7 -0
- package/dist/esm-browser/inmemorywriter.mjs +11 -0
- package/dist/esm-browser/inmemorywriter.mjs.map +7 -0
- package/dist/esm-browser/label.mjs +10 -0
- package/dist/esm-browser/label.mjs.map +7 -0
- package/dist/esm-browser/loaders/compositefileloader.mjs +10 -0
- package/dist/esm-browser/loaders/compositefileloader.mjs.map +7 -0
- package/dist/esm-browser/loaders/defaultfileloader.mjs +14 -0
- package/dist/esm-browser/loaders/defaultfileloader.mjs.map +7 -0
- package/dist/esm-browser/loaders/fileloader.mjs +7 -0
- package/dist/esm-browser/loaders/fileloader.mjs.map +7 -0
- package/dist/esm-browser/loaders/githubfileloader.mjs +12 -0
- package/dist/esm-browser/loaders/githubfileloader.mjs.map +7 -0
- package/dist/esm-browser/loaders/httpfileloader.mjs +11 -0
- package/dist/esm-browser/loaders/httpfileloader.mjs.map +7 -0
- package/dist/esm-browser/logger.mjs +10 -0
- package/dist/esm-browser/logger.mjs.map +7 -0
- package/dist/esm-browser/modelwriter.mjs +9 -0
- package/dist/esm-browser/modelwriter.mjs.map +7 -0
- package/dist/esm-browser/null.mjs +10 -0
- package/dist/esm-browser/null.mjs.map +7 -0
- package/dist/esm-browser/typedstack.mjs +10 -0
- package/dist/esm-browser/typedstack.mjs.map +7 -0
- package/dist/esm-browser/warning.mjs +8 -0
- package/dist/esm-browser/warning.mjs.map +7 -0
- package/dist/esm-browser/writer.mjs +10 -0
- package/dist/esm-browser/writer.mjs.map +7 -0
- package/dist/filedownloader.d.ts +14 -6
- package/dist/filedownloader.js +32 -12
- package/dist/filewriter.d.ts +3 -2
- package/dist/filewriter.js +10 -4
- package/dist/identifiers.js +4 -2
- package/dist/index.d.ts +18 -17
- package/dist/index.js +34 -31
- package/dist/inmemorywriter.d.ts +3 -2
- package/dist/inmemorywriter.js +10 -4
- package/dist/loaders/compositefileloader.d.ts +2 -1
- package/dist/loaders/compositefileloader.js +5 -2
- package/dist/loaders/defaultfileloader.d.ts +3 -2
- package/dist/loaders/defaultfileloader.js +14 -8
- package/dist/loaders/githubfileloader.d.ts +3 -2
- package/dist/loaders/githubfileloader.js +10 -4
- package/dist/loaders/httpfileloader.d.ts +2 -1
- package/dist/loaders/httpfileloader.js +10 -3
- package/dist/logger.d.ts +2 -1
- package/dist/logger.js +5 -2
- package/dist/modelwriter.js +6 -4
- package/dist/null.d.ts +3 -2
- package/dist/null.js +5 -2
- package/dist/typedstack.d.ts +2 -1
- package/dist/typedstack.js +5 -2
- package/dist/writer.d.ts +2 -1
- package/dist/writer.js +5 -2
- package/package.json +16 -8
- package/dist/concerto-util.js +0 -2
- package/dist/concerto-util.js.LICENSE.txt +0 -19
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_BASE_EXCEPTION
|
|
3
|
+
} from "./chunk-NAP47VIV.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__commonJS,
|
|
6
|
+
init_browser_process_shim
|
|
7
|
+
} from "./chunk-NSJTBLWA.mjs";
|
|
8
|
+
|
|
9
|
+
// package.json
|
|
10
|
+
var require_package = __commonJS({
|
|
11
|
+
"package.json"(exports, module) {
|
|
12
|
+
module.exports = {
|
|
13
|
+
name: "@accordproject/concerto-util",
|
|
14
|
+
version: "5.0.0-beta.2",
|
|
15
|
+
description: "Utilities for Concerto Modeling Language",
|
|
16
|
+
homepage: "https://github.com/accordproject/concerto",
|
|
17
|
+
engines: {
|
|
18
|
+
node: ">=18",
|
|
19
|
+
npm: ">=9"
|
|
20
|
+
},
|
|
21
|
+
main: "dist/index.js",
|
|
22
|
+
typings: "dist/index.d.ts",
|
|
23
|
+
scripts: {
|
|
24
|
+
clean: "rimraf dist",
|
|
25
|
+
prebuild: "npm-run-all clean",
|
|
26
|
+
pretest: "npm run lint",
|
|
27
|
+
lint: "eslint .",
|
|
28
|
+
postlint: "npm run licchk",
|
|
29
|
+
licchk: "license-check-and-add",
|
|
30
|
+
postlicchk: "npm run doc",
|
|
31
|
+
doc: "jsdoc --pedantic --recurse -c jsdoc.json",
|
|
32
|
+
test: "nyc mocha -r ts-node/register --recursive -t 10000",
|
|
33
|
+
"test:watch": "nyc mocha -r ts-node/register --watch --recursive -t 10000",
|
|
34
|
+
build: "tsc -p tsconfig.build.json && npm run build:esm",
|
|
35
|
+
"build:esm": "node ../../scripts/build-esm.js"
|
|
36
|
+
},
|
|
37
|
+
repository: {
|
|
38
|
+
type: "git",
|
|
39
|
+
url: "https://github.com/accordproject/concerto.git",
|
|
40
|
+
directory: "packages/concerto-util"
|
|
41
|
+
},
|
|
42
|
+
keywords: [
|
|
43
|
+
"blockchain",
|
|
44
|
+
"hyperledger",
|
|
45
|
+
"solutions"
|
|
46
|
+
],
|
|
47
|
+
author: "accordproject.org",
|
|
48
|
+
license: "Apache-2.0",
|
|
49
|
+
devDependencies: {
|
|
50
|
+
"@istanbuljs/nyc-config-typescript": "1.0.2",
|
|
51
|
+
"@types/jest": "28.1.1",
|
|
52
|
+
"@types/node": "18.11.18",
|
|
53
|
+
"@types/semver": "7.3.10",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
55
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
56
|
+
chai: "4.3.6",
|
|
57
|
+
"chai-as-promised": "7.1.1",
|
|
58
|
+
"chai-things": "0.2.0",
|
|
59
|
+
eslint: "8.57.1",
|
|
60
|
+
jsdoc: "^4.0.2",
|
|
61
|
+
"license-check-and-add": "2.3.6",
|
|
62
|
+
mocha: "^10.8.2",
|
|
63
|
+
nock: "^13.3.8",
|
|
64
|
+
"npm-run-all": "4.1.5",
|
|
65
|
+
nyc: "15.1.0",
|
|
66
|
+
rimraf: "3.0.2",
|
|
67
|
+
"tmp-promise": "3.0.2",
|
|
68
|
+
"ts-jest": "28.0.4",
|
|
69
|
+
"ts-node": "10.9.1",
|
|
70
|
+
typescript: "5.9.3",
|
|
71
|
+
undici: "6.25.0"
|
|
72
|
+
},
|
|
73
|
+
dependencies: {
|
|
74
|
+
"@supercharge/promise-pool": "1.7.0",
|
|
75
|
+
colors: "1.4.0",
|
|
76
|
+
debug: "4.3.4",
|
|
77
|
+
slash: "3.0.0"
|
|
78
|
+
},
|
|
79
|
+
browserslist: "> 0.25%, not dead",
|
|
80
|
+
"license-check-and-add-config": {
|
|
81
|
+
folder: "./src",
|
|
82
|
+
license: "HEADER",
|
|
83
|
+
exact_paths_method: "EXCLUDE",
|
|
84
|
+
exact_paths: [
|
|
85
|
+
"api.txt",
|
|
86
|
+
"composer-logs",
|
|
87
|
+
"coverage",
|
|
88
|
+
"LICENSE",
|
|
89
|
+
"node_modules",
|
|
90
|
+
".nyc-output",
|
|
91
|
+
"out",
|
|
92
|
+
".tern-project"
|
|
93
|
+
],
|
|
94
|
+
file_type_method: "EXCLUDE",
|
|
95
|
+
file_types: [
|
|
96
|
+
".yml",
|
|
97
|
+
".yaml",
|
|
98
|
+
".zip",
|
|
99
|
+
".tgz"
|
|
100
|
+
],
|
|
101
|
+
insert_license: false,
|
|
102
|
+
license_formats: {
|
|
103
|
+
"js|ts|njk|pegjs|cto|acl|qry": {
|
|
104
|
+
prepend: "/*",
|
|
105
|
+
append: " */",
|
|
106
|
+
eachLine: {
|
|
107
|
+
prepend: " * "
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"npmrc|editorconfig|txt": {
|
|
111
|
+
eachLine: {
|
|
112
|
+
prepend: "# "
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
md: {
|
|
116
|
+
file: "HEADER.md"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
nyc: {
|
|
121
|
+
extends: "@istanbuljs/nyc-config-typescript",
|
|
122
|
+
"produce-source-map": "true",
|
|
123
|
+
reporter: [
|
|
124
|
+
"lcov",
|
|
125
|
+
"text-summary",
|
|
126
|
+
"html",
|
|
127
|
+
"json"
|
|
128
|
+
],
|
|
129
|
+
include: [
|
|
130
|
+
"src/**/*.js",
|
|
131
|
+
"src/**/*.ts"
|
|
132
|
+
],
|
|
133
|
+
all: true,
|
|
134
|
+
"check-coverage": true,
|
|
135
|
+
statements: 100,
|
|
136
|
+
branches: 94,
|
|
137
|
+
functions: 100,
|
|
138
|
+
lines: 100
|
|
139
|
+
},
|
|
140
|
+
module: "dist/esm/index.mjs",
|
|
141
|
+
exports: {
|
|
142
|
+
".": {
|
|
143
|
+
types: "./dist/index.d.ts",
|
|
144
|
+
browser: "./dist/esm-browser/index.mjs",
|
|
145
|
+
import: "./dist/esm/index.mjs",
|
|
146
|
+
require: "./dist/index.js"
|
|
147
|
+
},
|
|
148
|
+
"./package.json": "./package.json",
|
|
149
|
+
"./dist/*": "./dist/*"
|
|
150
|
+
},
|
|
151
|
+
sideEffects: false
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
// src/baseexception.ts
|
|
157
|
+
init_browser_process_shim();
|
|
158
|
+
var packageJson = require_package();
|
|
159
|
+
var BaseException = class extends Error {
|
|
160
|
+
/**
|
|
161
|
+
* Create the BaseException.
|
|
162
|
+
* @param message - The exception message.
|
|
163
|
+
* @param component - The optional component which throws this error.
|
|
164
|
+
* @param errorType - The optional error code regarding the error
|
|
165
|
+
*/
|
|
166
|
+
constructor(message, component, errorType) {
|
|
167
|
+
super(message);
|
|
168
|
+
this.component = component || packageJson.name;
|
|
169
|
+
this.name = this.constructor.name;
|
|
170
|
+
this.message = message;
|
|
171
|
+
this.errorType = errorType || DEFAULT_BASE_EXCEPTION;
|
|
172
|
+
if (typeof Error.captureStackTrace === "function") {
|
|
173
|
+
Error.captureStackTrace(this, this.constructor);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
var baseexception_default = BaseException;
|
|
178
|
+
|
|
179
|
+
export {
|
|
180
|
+
BaseException,
|
|
181
|
+
baseexception_default
|
|
182
|
+
};
|
|
183
|
+
//# sourceMappingURL=chunk-R6CSKES3.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../package.json", "../../src/baseexception.ts"],
|
|
4
|
+
"sourcesContent": ["{\n \"name\": \"@accordproject/concerto-util\",\n \"version\": \"5.0.0-beta.2\",\n \"description\": \"Utilities for Concerto Modeling Language\",\n \"homepage\": \"https://github.com/accordproject/concerto\",\n \"engines\": {\n \"node\": \">=18\",\n \"npm\": \">=9\"\n },\n \"main\": \"dist/index.js\",\n \"typings\": \"dist/index.d.ts\",\n \"scripts\": {\n \"clean\": \"rimraf dist\",\n \"prebuild\": \"npm-run-all clean\",\n \"pretest\": \"npm run lint\",\n \"lint\": \"eslint .\",\n \"postlint\": \"npm run licchk\",\n \"licchk\": \"license-check-and-add\",\n \"postlicchk\": \"npm run doc\",\n \"doc\": \"jsdoc --pedantic --recurse -c jsdoc.json\",\n \"test\": \"nyc mocha -r ts-node/register --recursive -t 10000\",\n \"test:watch\": \"nyc mocha -r ts-node/register --watch --recursive -t 10000\",\n \"build\": \"tsc -p tsconfig.build.json && npm run build:esm\",\n \"build:esm\": \"node ../../scripts/build-esm.js\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/accordproject/concerto.git\",\n \"directory\": \"packages/concerto-util\"\n },\n \"keywords\": [\n \"blockchain\",\n \"hyperledger\",\n \"solutions\"\n ],\n \"author\": \"accordproject.org\",\n \"license\": \"Apache-2.0\",\n \"devDependencies\": {\n \"@istanbuljs/nyc-config-typescript\": \"1.0.2\",\n \"@types/jest\": \"28.1.1\",\n \"@types/node\": \"18.11.18\",\n \"@types/semver\": \"7.3.10\",\n \"@typescript-eslint/eslint-plugin\": \"^8.46.2\",\n \"@typescript-eslint/parser\": \"^8.46.2\",\n \"chai\": \"4.3.6\",\n \"chai-as-promised\": \"7.1.1\",\n \"chai-things\": \"0.2.0\",\n \"eslint\": \"8.57.1\",\n \"jsdoc\": \"^4.0.2\",\n \"license-check-and-add\": \"2.3.6\",\n \"mocha\": \"^10.8.2\",\n \"nock\": \"^13.3.8\",\n \"npm-run-all\": \"4.1.5\",\n \"nyc\": \"15.1.0\",\n \"rimraf\": \"3.0.2\",\n \"tmp-promise\": \"3.0.2\",\n \"ts-jest\": \"28.0.4\",\n \"ts-node\": \"10.9.1\",\n \"typescript\": \"5.9.3\",\n \"undici\": \"6.25.0\"\n },\n \"dependencies\": {\n \"@supercharge/promise-pool\": \"1.7.0\",\n \"colors\": \"1.4.0\",\n \"debug\": \"4.3.4\",\n \"slash\": \"3.0.0\"\n },\n \"browserslist\": \"> 0.25%, not dead\",\n \"license-check-and-add-config\": {\n \"folder\": \"./src\",\n \"license\": \"HEADER\",\n \"exact_paths_method\": \"EXCLUDE\",\n \"exact_paths\": [\n \"api.txt\",\n \"composer-logs\",\n \"coverage\",\n \"LICENSE\",\n \"node_modules\",\n \".nyc-output\",\n \"out\",\n \".tern-project\"\n ],\n \"file_type_method\": \"EXCLUDE\",\n \"file_types\": [\n \".yml\",\n \".yaml\",\n \".zip\",\n \".tgz\"\n ],\n \"insert_license\": false,\n \"license_formats\": {\n \"js|ts|njk|pegjs|cto|acl|qry\": {\n \"prepend\": \"/*\",\n \"append\": \" */\",\n \"eachLine\": {\n \"prepend\": \" * \"\n }\n },\n \"npmrc|editorconfig|txt\": {\n \"eachLine\": {\n \"prepend\": \"# \"\n }\n },\n \"md\": {\n \"file\": \"HEADER.md\"\n }\n }\n },\n \"nyc\": {\n \"extends\": \"@istanbuljs/nyc-config-typescript\",\n \"produce-source-map\": \"true\",\n \"reporter\": [\n \"lcov\",\n \"text-summary\",\n \"html\",\n \"json\"\n ],\n \"include\": [\n \"src/**/*.js\",\n \"src/**/*.ts\"\n ],\n \"all\": true,\n \"check-coverage\": true,\n \"statements\": 100,\n \"branches\": 94,\n \"functions\": 100,\n \"lines\": 100\n },\n \"module\": \"dist/esm/index.mjs\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"browser\": \"./dist/esm-browser/index.mjs\",\n \"import\": \"./dist/esm/index.mjs\",\n \"require\": \"./dist/index.js\"\n },\n \"./package.json\": \"./package.json\",\n \"./dist/*\": \"./dist/*\"\n },\n \"sideEffects\": false\n}\n", "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as ErrorCodes from './errorcodes';\n// eslint-disable-next-line @typescript-eslint/no-var-requires\nconst packageJson = require('../package.json');\n\n/**\n* A base class for all Concerto exceptions\n* @extends Error\n* @class\n* @memberof module:concerto-core\n*/\nclass BaseException extends Error {\n public component: string;\n public errorType: string;\n\n /**\n * Create the BaseException.\n * @param message - The exception message.\n * @param component - The optional component which throws this error.\n * @param errorType - The optional error code regarding the error\n */\n constructor(message: string, component?: string, errorType?: string) {\n super(message);\n this.component = component || packageJson.name;\n this.name = this.constructor.name;\n this.message = message;\n this.errorType = errorType || ErrorCodes.DEFAULT_BASE_EXCEPTION;\n if (typeof Error.captureStackTrace === 'function') {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n}\n\nexport { BaseException };\nexport default BaseException;\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export,
|
|
3
|
+
init_browser_process_shim,
|
|
4
|
+
process
|
|
5
|
+
} from "./chunk-NSJTBLWA.mjs";
|
|
6
|
+
|
|
7
|
+
// src/warning.ts
|
|
8
|
+
var warning_exports = {};
|
|
9
|
+
__export(warning_exports, {
|
|
10
|
+
printDeprecationWarning: () => printDeprecationWarning
|
|
11
|
+
});
|
|
12
|
+
init_browser_process_shim();
|
|
13
|
+
var isWarningEmitted = false;
|
|
14
|
+
function printDeprecationWarning(message, type, code, detail) {
|
|
15
|
+
const customEmitWarning = process.emitWarning;
|
|
16
|
+
if (!isWarningEmitted) {
|
|
17
|
+
isWarningEmitted = true;
|
|
18
|
+
customEmitWarning(`DEPRECATED: ${message}`, {
|
|
19
|
+
type,
|
|
20
|
+
code,
|
|
21
|
+
detail
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
printDeprecationWarning,
|
|
28
|
+
warning_exports
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=chunk-S52XDDAF.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/warning.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n'use strict';\n\n// Tell TypeScript that 'process' exists globally (shims Node.js types)\ndeclare const process: any;\n\nlet isWarningEmitted = false;\n\n/**\n * Emits DeprecationWaring to stderr only once and can be caught using an warning event listener as well, please define the code\n * and document the deprecation code on https://concerto.accordproject.org/deprecation\n * @param message - message of the deprecation warning\n * @param type - type of the deprecation warning\n * @param code - code of the deprecation warning\n * @param detail - detail of the deprecation warning\n */\nexport function printDeprecationWarning(message: string, type: string, code: string, detail: string): void {\n // This will get polyfilled in the webpack.config.js as process.emitWarning is not available in the browser\n const customEmitWarning = process.emitWarning;\n if (!isWarningEmitted) {\n isWarningEmitted = true;\n customEmitWarning(`DEPRECATED: ${message}`, {\n type,\n code,\n detail\n });\n }\n}"],
|
|
5
|
+
"mappings": ";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBA,IAAI,mBAAmB;AAUhB,SAAS,wBAAwB,SAAiB,MAAc,MAAc,QAAsB;AAEvG,QAAM,oBAAoB,QAAQ;AAClC,MAAI,CAAC,kBAAkB;AACnB,uBAAmB;AACnB,sBAAkB,eAAe,OAAO,IAAI;AAAA,MACxC;AAAA,MACA;AAAA,MACA;AAAA,IACJ,CAAC;AAAA,EACL;AACJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
httpfileloader_default
|
|
3
|
+
} from "./chunk-EGOFDABS.mjs";
|
|
4
|
+
import {
|
|
5
|
+
init_browser_process_shim
|
|
6
|
+
} from "./chunk-NSJTBLWA.mjs";
|
|
7
|
+
|
|
8
|
+
// src/loaders/githubfileloader.ts
|
|
9
|
+
init_browser_process_shim();
|
|
10
|
+
var GitHubFileLoader = class extends httpfileloader_default {
|
|
11
|
+
/**
|
|
12
|
+
* Create the GitHubFileLoader.
|
|
13
|
+
* @param processFile - a function to apply to the content of the file
|
|
14
|
+
*/
|
|
15
|
+
constructor(processFile) {
|
|
16
|
+
super(processFile);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns true if this ModelLoader can process the URL
|
|
20
|
+
* @param url - the URL
|
|
21
|
+
* @return true if this ModelLoader accepts the URL
|
|
22
|
+
* @abstract
|
|
23
|
+
*/
|
|
24
|
+
accepts(url) {
|
|
25
|
+
return url.startsWith("github://");
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Load a File from a URL and return it
|
|
29
|
+
* @param url - the url to get
|
|
30
|
+
* @param options - additional options
|
|
31
|
+
* @return a promise to the File
|
|
32
|
+
*/
|
|
33
|
+
load(url, options) {
|
|
34
|
+
const rewrittenUrl = "https://raw.githubusercontent.com/" + url.substring(9);
|
|
35
|
+
const result = super.load(rewrittenUrl, options);
|
|
36
|
+
return result;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
var githubfileloader_default = GitHubFileLoader;
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
GitHubFileLoader,
|
|
43
|
+
githubfileloader_default
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=chunk-SU6SG5PJ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/loaders/githubfileloader.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport HTTPFileLoader from './httpfileloader';\n\n/**\n * Loads Files from an external source, such as a URL.\n *\n * @class\n * @private\n * @memberof module:concerto-util\n */\nclass GitHubFileLoader<T> extends HTTPFileLoader<T> {\n /**\n * Create the GitHubFileLoader.\n * @param processFile - a function to apply to the content of the file\n */\n constructor(processFile: (name: string, text: string) => T) {\n super(processFile);\n }\n\n /**\n * Returns true if this ModelLoader can process the URL\n * @param url - the URL\n * @return true if this ModelLoader accepts the URL\n * @abstract\n */\n accepts(url: string): boolean {\n return url.startsWith('github://');\n }\n\n /**\n * Load a File from a URL and return it\n * @param url - the url to get\n * @param options - additional options\n * @return a promise to the File\n */\n load(url: string, options?: RequestInit): Promise<T> {\n const rewrittenUrl = 'https://raw.githubusercontent.com/' + url.substring(9);\n const result = super.load(rewrittenUrl, options);\n return result;\n }\n}\n\nexport { GitHubFileLoader };\nexport default GitHubFileLoader;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAAA;AAuBA,IAAM,mBAAN,cAAkC,uBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA,EAKhD,YAAY,aAAgD;AACxD,UAAM,WAAW;AAAA,EACrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,QAAQ,KAAsB;AAC1B,WAAO,IAAI,WAAW,WAAW;AAAA,EACrC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,KAAK,KAAa,SAAmC;AACjD,UAAM,eAAe,uCAAuC,IAAI,UAAU,CAAC;AAC3E,UAAM,SAAS,MAAM,KAAK,cAAc,OAAO;AAC/C,WAAO;AAAA,EACX;AACJ;AAGA,IAAO,2BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export,
|
|
3
|
+
init_browser_process_shim
|
|
4
|
+
} from "./chunk-NSJTBLWA.mjs";
|
|
5
|
+
|
|
6
|
+
// src/label.ts
|
|
7
|
+
var label_exports = {};
|
|
8
|
+
__export(label_exports, {
|
|
9
|
+
labelToSentence: () => labelToSentence,
|
|
10
|
+
sentenceToLabel: () => sentenceToLabel
|
|
11
|
+
});
|
|
12
|
+
init_browser_process_shim();
|
|
13
|
+
function labelToSentence(labelName = "") {
|
|
14
|
+
return labelName.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/([A-Z])([a-z])/g, " $1$2").replace(/ +/g, " ").replace(/^./, (str) => str.toUpperCase()).trim();
|
|
15
|
+
}
|
|
16
|
+
function sentenceToLabel(sentence = "") {
|
|
17
|
+
const split = sentence.split(/[^A-Za-z0-9_-]+/);
|
|
18
|
+
split.forEach((word, index) => {
|
|
19
|
+
split[index] = split[index].replace(/^./, (str) => str.toUpperCase());
|
|
20
|
+
});
|
|
21
|
+
const joined = split.join("");
|
|
22
|
+
return joined.replace(/^./, (str) => str.toLowerCase());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
labelToSentence,
|
|
27
|
+
sentenceToLabel,
|
|
28
|
+
label_exports
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=chunk-WCGRUR5U.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/label.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n'use strict';\n\n/**\n * Inserts correct spacing and capitalization to a camelCase label\n * @param labelName - the label text to be transformed\n * @returns - The label text formatted for rendering\n */\nexport function labelToSentence(labelName: string = ''): string {\n return labelName\n .replace(/([a-z])([A-Z])/g, '$1 $2')\n .replace(/([A-Z])([a-z])/g, ' $1$2')\n .replace(/ +/g, ' ')\n .replace(/^./, str => str.toUpperCase())\n .trim();\n}\n\n/**\n * Create a camelCase label from a sentence\n * @param sentence - the sentence\n * @returns - The camelCase label\n */\nexport function sentenceToLabel(sentence: string = ''): string {\n const split = sentence.split(/[^A-Za-z0-9_-]+/);\n split.forEach((word, index) => {\n split[index] = split[index].replace(/^./, str => str.toUpperCase());\n });\n const joined = split.join('');\n return joined.replace(/^./, str => str.toLowerCase());\n}"],
|
|
5
|
+
"mappings": ";;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqBO,SAAS,gBAAgB,YAAoB,IAAY;AAC5D,SAAO,UACF,QAAQ,mBAAmB,OAAO,EAClC,QAAQ,mBAAmB,OAAO,EAClC,QAAQ,OAAO,GAAG,EAClB,QAAQ,MAAM,SAAO,IAAI,YAAY,CAAC,EACtC,KAAK;AACd;AAOO,SAAS,gBAAgB,WAAmB,IAAY;AAC3D,QAAM,QAAQ,SAAS,MAAM,iBAAiB;AAC9C,QAAM,QAAQ,CAAC,MAAM,UAAU;AAC3B,UAAM,KAAK,IAAI,MAAM,KAAK,EAAE,QAAQ,MAAM,SAAO,IAAI,YAAY,CAAC;AAAA,EACtE,CAAC;AACD,QAAM,SAAS,MAAM,KAAK,EAAE;AAC5B,SAAO,OAAO,QAAQ,MAAM,SAAO,IAAI,YAAY,CAAC;AACxD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import {
|
|
2
|
+
baseexception_default
|
|
3
|
+
} from "./chunk-R6CSKES3.mjs";
|
|
4
|
+
import {
|
|
5
|
+
init_browser_process_shim
|
|
6
|
+
} from "./chunk-NSJTBLWA.mjs";
|
|
7
|
+
|
|
8
|
+
// src/basefileexception.ts
|
|
9
|
+
init_browser_process_shim();
|
|
10
|
+
var BaseFileException = class extends baseexception_default {
|
|
11
|
+
/**
|
|
12
|
+
* Create an BaseFileException
|
|
13
|
+
* @param message - the message for the exception
|
|
14
|
+
* @param fileLocation - the optional file location associated with the exception
|
|
15
|
+
* @param fullMessage - the optional full message text
|
|
16
|
+
* @param fileName - the file name
|
|
17
|
+
* @param component - the component which throws this error
|
|
18
|
+
*/
|
|
19
|
+
constructor(message, fileLocation = null, fullMessage = null, fileName = null, component) {
|
|
20
|
+
super(fullMessage ? fullMessage : message, component);
|
|
21
|
+
this.fileLocation = fileLocation;
|
|
22
|
+
this.shortMessage = message;
|
|
23
|
+
this.fileName = fileName;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Returns the file location associated with the exception or null
|
|
27
|
+
* @return the optional location associated with the exception
|
|
28
|
+
*/
|
|
29
|
+
getFileLocation() {
|
|
30
|
+
return this.fileLocation;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Returns the error message without the location of the error
|
|
34
|
+
* @returns the error message
|
|
35
|
+
*/
|
|
36
|
+
getShortMessage() {
|
|
37
|
+
return this.shortMessage;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns the fileName for the error
|
|
41
|
+
* @returns the file name or null
|
|
42
|
+
*/
|
|
43
|
+
getFileName() {
|
|
44
|
+
return this.fileName;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
var basefileexception_default = BaseFileException;
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
BaseFileException,
|
|
51
|
+
basefileexception_default
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=chunk-YJQCJTA7.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/basefileexception.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport BaseException from './baseexception';\n\n/**\n * Exception throws when a Concerto file is semantically invalid\n * @extends BaseException\n * @see {@link BaseException}\n * @class\n * @memberof module:concerto-core\n */\nclass BaseFileException extends BaseException {\n public fileLocation: string | null;\n public shortMessage: string;\n public fileName: string | null;\n\n /**\n * Create an BaseFileException\n * @param message - the message for the exception\n * @param fileLocation - the optional file location associated with the exception\n * @param fullMessage - the optional full message text\n * @param fileName - the file name\n * @param component - the component which throws this error\n */\n constructor(message: string, fileLocation: string | null = null, fullMessage: string | null = null, fileName: string | null = null, component?: string) {\n super(fullMessage ? fullMessage : message, component);\n this.fileLocation = fileLocation;\n this.shortMessage = message;\n this.fileName = fileName;\n }\n\n /**\n * Returns the file location associated with the exception or null\n * @return the optional location associated with the exception\n */\n getFileLocation(): string | null {\n return this.fileLocation;\n }\n\n /**\n * Returns the error message without the location of the error\n * @returns the error message\n */\n getShortMessage(): string {\n return this.shortMessage;\n }\n\n /**\n * Returns the fileName for the error\n * @returns the file name or null\n */\n getFileName(): string | null {\n return this.fileName;\n }\n}\n\nexport { BaseFileException };\nexport default BaseFileException;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAAA;AAuBA,IAAM,oBAAN,cAAgC,sBAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAa1C,YAAY,SAAiB,eAA8B,MAAM,cAA6B,MAAM,WAA0B,MAAM,WAAoB;AACpJ,UAAM,cAAc,cAAc,SAAS,SAAS;AACpD,SAAK,eAAe;AACpB,SAAK,eAAe;AACpB,SAAK,WAAW;AAAA,EACpB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,kBAAiC;AAC7B,WAAO,KAAK;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,kBAA0B;AACtB,WAAO,KAAK;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,cAA6B;AACzB,WAAO,KAAK;AAAA,EAChB;AACJ;AAGA,IAAO,4BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|