Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update deps and enable source maps #104

Merged
merged 3 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
strategy:
matrix:
node-version:
- 16.x
- 18.x
- 20.x
os:
- ubuntu-latest
- windows-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: 16.x
node-version: 18.x

- run: npm ci
- run: npm run build --if-present
Expand Down
2 changes: 1 addition & 1 deletion lib/codegen/fromOpenApi/cto/openApiVisitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

'use strict';

const toJsonSchema = require('@openapi-contrib/openapi-schema-to-json-schema');
const { openapiSchemaToJsonSchema: toJsonSchema } = require('@openapi-contrib/openapi-schema-to-json-schema');
const migrate = require('json-schema-migrate');
const { OpenApiDefinition } = require('./openApiClasses');

Expand Down
539 changes: 260 additions & 279 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@accordproject/concerto-codegen",
"version": "3.22.1",
"description": "CodeGen for the Concerto Modeling Language",
"version": "3.23.0",
"description": "Code Generation for the Concerto Modeling Language",
"homepage": "https://github.com/accordproject/concerto",
"engines": {
"node": ">=14",
"node": ">=18",
"npm": ">=6"
},
"main": "index.js",
Expand Down Expand Up @@ -45,15 +45,15 @@
"author": "accordproject.org",
"license": "Apache-2.0",
"devDependencies": {
"@accordproject/concerto-cto": "3.16.4",
"@accordproject/concerto-cto": "3.16.8",
"@babel/preset-env": "7.16.11",
"babel-loader": "8.2.3",
"chai": "4.3.6",
"chai-as-promised": "7.1.1",
"chai-things": "0.2.0",
"eslint": "8.2.0",
"expect": "29.1.0",
"jsdoc": "^3.6.7",
"jsdoc": "^4.0.3",
"license-check-and-add": "2.3.6",
"mocha": "10.0.0",
"mocha-expect-snapshot": "6.2.0",
Expand All @@ -70,14 +70,14 @@
"webpack-cli": "4.9.1"
},
"dependencies": {
"@accordproject/concerto-core": "3.16.5",
"@accordproject/concerto-util": "3.16.5",
"@accordproject/concerto-vocabulary": "3.16.5",
"@openapi-contrib/openapi-schema-to-json-schema": "3.2.0",
"ajv": "8.10.0",
"ajv-formats": "2.1.1",
"@accordproject/concerto-core": "3.16.8",
"@accordproject/concerto-util": "3.16.8",
"@accordproject/concerto-vocabulary": "3.16.8",
"@openapi-contrib/openapi-schema-to-json-schema": "5.1.0",
"ajv": "8.13.0",
"ajv-formats": "3.0.1",
"camelcase": "6.3.0",
"debug": "4.3.1",
"debug": "4.3.4",
"get-value": "3.0.1",
"json-schema-migrate": "2.0.0",
"pluralize": "8.0.0"
Expand Down
18 changes: 9 additions & 9 deletions types/lib/codegen/fromcto/vocabulary/vocabularyvisitor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,71 +13,71 @@ declare class VocabularyVisitor {
/**
* Visitor design pattern
* @param {Object} thing - the object being visited
* @param {Object} parameters - the parameter
* @param {Object} parameters - the parameter
* @return {Object} the result of visiting or null
* @public
*/
public visit(thing: any, parameters: any): any;
/**
* Visitor design pattern
* @param {ModelManager} modelManager - the object being visited
* @param {Object} parameters - the parameter
* @param {Object} parameters - the parameter
* @return {Object} the result of visiting or null
* @private
*/
private visitModelManager;
/**
* Visitor design pattern
* @param {ModelFile} modelFile - the object being visited
* @param {Object} parameters - the parameter
* @param {Object} parameters - the parameter
* @return {Object} the result of visiting or null
* @private
*/
private visitModelFile;
/**
* Visitor design pattern
* @param {Declaration} declaration - the object being visited
* @param {Object} parameters - the parameter
* @param {Object} parameters - the parameter
* @return {Object} the result of visiting or null
* @private
*/
private visitDeclaration;
/**
* Visitor design pattern
* @param {ScalarDeclaration} scalarDeclaration - the object being visited
* @param {Object} parameters - the parameter
* @param {Object} parameters - the parameter
* @return {Object} the result of visiting or null
* @private
*/
private visitScalarDeclaration;
/**
* Visitor design pattern
* @param {MapDeclaration} mapDeclaration - the object being visited
* @param {Object} parameters - the parameter
* @param {Object} parameters - the parameter
* @return {Object} the result of visiting or null
* @private
*/
private visitMapDeclaration;
/**
* Visitor design pattern
* @param {Property} property - the object being visited
* @param {Object} parameters - the parameter
* @param {Object} parameters - the parameter
* @return {Object} the result of visiting or null
* @private
*/
private visitProperty;
/**
* Visitor design pattern
* @param {MapKeyType} mapKey - the object being visited
* @param {Object} parameters - the parameter
* @param {Object} parameters - the parameter
* @return {Object} the result of visiting or null
* @private
*/
private visitMapKey;
/**
* Visitor design pattern
* @param {MapValueType} mapValue - the object being visited
* @param {Object} parameters - the parameter
* @param {Object} parameters - the parameter
* @return {Object} the result of visiting or null
* @private
*/
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
const packageJson = require('./package.json');

module.exports = {
devtool: 'source-map',
entry: {
client: [
'./index.js'
Expand Down
Loading