Skip to content

Commit

Permalink
chore(deps): update concerto dependencies (#110)
Browse files Browse the repository at this point in the history
* chore(dep): update concerto dependencies

Signed-off-by: Ertugrul Karademir <[email protected]>

* fix: lint warnings

Signed-off-by: Ertugrul Karademir <[email protected]>

---------

Signed-off-by: Ertugrul Karademir <[email protected]>
  • Loading branch information
ekarademir authored Jul 23, 2024
1 parent b385482 commit a628773
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 202 deletions.
3 changes: 3 additions & 0 deletions lib/codegen/fromJsonSchema/cto/jsonSchemaVisitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ class JsonSchemaVisitor {
arrayProperty.path.length - 1
];
if (this.isFixedElementsArrayProperty(arrayProperty)) {
// eslint-disable-next-line no-console
console.warn(
`"${propertyName}" in an array containing a set of fixed elements. Converting to a Concerto concept containing the fixed array elements as fields.`
);
Expand All @@ -575,6 +576,7 @@ class JsonSchemaVisitor {
// we'd like to convert the property to a freeform JSON stringified
// one. This stems from Concerto not being to describe an array
// with a number of fixed elements and addtitional unknown ones.
// eslint-disable-next-line no-console
console.warn(
`"${propertyName}" is an array containing a mix of predefined and unknown elements. Converting to a stringified JSON string.`
);
Expand Down Expand Up @@ -718,6 +720,7 @@ class JsonSchemaVisitor {

// Handle a union type.
if (Array.isArray(property.body.type)) {
// eslint-disable-next-line no-console
console.warn(
`"${propertyName}" is union type property. This feature is not supported by Concerto. Defaulting to a "string" type.`
);
Expand Down
230 changes: 34 additions & 196 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"author": "accordproject.org",
"license": "Apache-2.0",
"devDependencies": {
"@accordproject/concerto-cto": "3.16.8",
"@accordproject/concerto-cto": "3.17.1",
"@babel/preset-env": "7.16.11",
"babel-loader": "8.2.3",
"chai": "4.3.6",
Expand All @@ -70,9 +70,9 @@
"webpack-cli": "4.9.1"
},
"dependencies": {
"@accordproject/concerto-core": "3.16.10",
"@accordproject/concerto-util": "3.16.10",
"@accordproject/concerto-vocabulary": "3.16.10",
"@accordproject/concerto-core": "3.17.1",
"@accordproject/concerto-util": "3.17.1",
"@accordproject/concerto-vocabulary": "3.17.1",
"@openapi-contrib/openapi-schema-to-json-schema": "5.1.0",
"ajv": "8.13.0",
"ajv-formats": "3.0.1",
Expand Down
4 changes: 3 additions & 1 deletion scripts/coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ const lcovs = glob.sync(globPattern).map((dir) => {

// usage
copyFiles(lcovs, 'coverage').then(() => {
// eslint-disable-next-line no-console
console.log('done');
}).catch(err => {
// eslint-disable-next-line no-console
console.log(err);
});
});
2 changes: 2 additions & 0 deletions scripts/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ const semver = require('semver');
const targetVersion = process.argv[2];

if (!semver.valid(targetVersion)) {
// eslint-disable-next-line no-console
console.error(`Error: the version "${targetVersion}" is invalid!`);
process.exit(1);
}

const prerelease = semver.prerelease(targetVersion);
const tag = prerelease ? 'unstable' : 'latest';

// eslint-disable-next-line no-console
console.log(`::set-output name=tag::--tag=${tag}`);
4 changes: 3 additions & 1 deletion scripts/timestamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ const packageJson = path.resolve(rootDir, 'package.json');
const meta = require(packageJson);
meta.version.replace(/-.*/, '');
const targetVersion = semver.inc(meta.version, 'patch') + '-' + timestamp;
console.log(`::set-output name=stamp::${targetVersion}`);

// eslint-disable-next-line no-console
console.log(`::set-output name=stamp::${targetVersion}`);

0 comments on commit a628773

Please sign in to comment.