avro-decorators
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -5,2 +5,2 @@ #!/usr/bin/env node | ||
const program_1 = require("../internals/program"); | ||
program_1.runAvroDecorators(process.argv, process.exit, console); | ||
(0, program_1.runAvroDecorators)(process.argv, process.exit, console); |
@@ -22,13 +22,13 @@ "use strict"; | ||
return function (target, propertyKey) { | ||
const fieldMetadata = decorator_utils_1.determineFieldMetadataFromProps(propertyKey, arrayProps); | ||
const fieldMetadata = (0, decorator_utils_1.determineFieldMetadataFromProps)(propertyKey, arrayProps); | ||
const typeMetadata = { | ||
typeName: 'array-type', | ||
items: decorator_utils_1.resolveInlineTypeDefinition(arrayProps.ofType), | ||
items: (0, decorator_utils_1.resolveInlineTypeDefinition)(arrayProps.ofType), | ||
default: arrayProps.arrayDefault, | ||
nullable: arrayProps?.nullable ?? false, | ||
}; | ||
decorator_utils_1.storeAvroFieldReflectionMetadata(fieldMetadata, target, propertyKey); | ||
decorator_utils_1.storeAvroFieldTypeReflectionMetadata(typeMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldReflectionMetadata)(fieldMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldTypeReflectionMetadata)(typeMetadata, target, propertyKey); | ||
}; | ||
} | ||
exports.AvroArray = AvroArray; |
@@ -22,3 +22,3 @@ "use strict"; | ||
return function (target, propertyKey) { | ||
const fieldMetadata = decorator_utils_1.determineFieldMetadataFromProps(propertyKey, booleanProps); | ||
const fieldMetadata = (0, decorator_utils_1.determineFieldMetadataFromProps)(propertyKey, booleanProps); | ||
const typeMetadata = { | ||
@@ -29,6 +29,6 @@ typeName: 'primitive-defined-type', | ||
}; | ||
decorator_utils_1.storeAvroFieldReflectionMetadata(fieldMetadata, target, propertyKey); | ||
decorator_utils_1.storeAvroFieldTypeReflectionMetadata(typeMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldReflectionMetadata)(fieldMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldTypeReflectionMetadata)(typeMetadata, target, propertyKey); | ||
}; | ||
} | ||
exports.AvroBoolean = AvroBoolean; |
@@ -23,3 +23,3 @@ "use strict"; | ||
return function (target, propertyKey) { | ||
const fieldMetadata = decorator_utils_1.determineFieldMetadataFromProps(propertyKey, bytesProps); | ||
const fieldMetadata = (0, decorator_utils_1.determineFieldMetadataFromProps)(propertyKey, bytesProps); | ||
const typeMetadata = { | ||
@@ -30,6 +30,6 @@ typeName: 'primitive-defined-type', | ||
}; | ||
decorator_utils_1.storeAvroFieldReflectionMetadata(fieldMetadata, target, propertyKey); | ||
decorator_utils_1.storeAvroFieldTypeReflectionMetadata(typeMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldReflectionMetadata)(fieldMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldTypeReflectionMetadata)(typeMetadata, target, propertyKey); | ||
}; | ||
} | ||
exports.AvroBytes = AvroBytes; |
@@ -22,3 +22,3 @@ "use strict"; | ||
return function (target, propertyKey) { | ||
const fieldMetadata = decorator_utils_1.determineFieldMetadataFromProps(propertyKey, doubleProps); | ||
const fieldMetadata = (0, decorator_utils_1.determineFieldMetadataFromProps)(propertyKey, doubleProps); | ||
const typeMetadata = { | ||
@@ -29,6 +29,6 @@ typeName: 'primitive-defined-type', | ||
}; | ||
decorator_utils_1.storeAvroFieldReflectionMetadata(fieldMetadata, target, propertyKey); | ||
decorator_utils_1.storeAvroFieldTypeReflectionMetadata(typeMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldReflectionMetadata)(fieldMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldTypeReflectionMetadata)(typeMetadata, target, propertyKey); | ||
}; | ||
} | ||
exports.AvroDouble = AvroDouble; |
@@ -25,3 +25,3 @@ "use strict"; | ||
return function (target, propertyKey) { | ||
const fieldMetadata = decorator_utils_1.determineFieldMetadataFromProps(propertyKey, enumProps); | ||
const fieldMetadata = (0, decorator_utils_1.determineFieldMetadataFromProps)(propertyKey, enumProps); | ||
const typeMetadata = { | ||
@@ -46,6 +46,6 @@ typeName: 'enum-type', | ||
} | ||
decorator_utils_1.storeAvroFieldReflectionMetadata(fieldMetadata, target, propertyKey); | ||
decorator_utils_1.storeAvroFieldTypeReflectionMetadata(typeMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldReflectionMetadata)(fieldMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldTypeReflectionMetadata)(typeMetadata, target, propertyKey); | ||
}; | ||
} | ||
exports.AvroEnum = AvroEnum; |
@@ -22,3 +22,3 @@ "use strict"; | ||
return function (target, propertyKey) { | ||
const fieldMetadata = decorator_utils_1.determineFieldMetadataFromProps(propertyKey, fixedProps); | ||
const fieldMetadata = (0, decorator_utils_1.determineFieldMetadataFromProps)(propertyKey, fixedProps); | ||
const typeMetadata = { | ||
@@ -36,6 +36,6 @@ typeName: 'fixed-type', | ||
} | ||
decorator_utils_1.storeAvroFieldReflectionMetadata(fieldMetadata, target, propertyKey); | ||
decorator_utils_1.storeAvroFieldTypeReflectionMetadata(typeMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldReflectionMetadata)(fieldMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldTypeReflectionMetadata)(typeMetadata, target, propertyKey); | ||
}; | ||
} | ||
exports.AvroFixed = AvroFixed; |
@@ -22,3 +22,3 @@ "use strict"; | ||
return function (target, propertyKey) { | ||
const fieldMetadata = decorator_utils_1.determineFieldMetadataFromProps(propertyKey, floatProps); | ||
const fieldMetadata = (0, decorator_utils_1.determineFieldMetadataFromProps)(propertyKey, floatProps); | ||
const typeMetadata = { | ||
@@ -29,6 +29,6 @@ typeName: 'primitive-defined-type', | ||
}; | ||
decorator_utils_1.storeAvroFieldReflectionMetadata(fieldMetadata, target, propertyKey); | ||
decorator_utils_1.storeAvroFieldTypeReflectionMetadata(typeMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldReflectionMetadata)(fieldMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldTypeReflectionMetadata)(typeMetadata, target, propertyKey); | ||
}; | ||
} | ||
exports.AvroFloat = AvroFloat; |
@@ -22,3 +22,3 @@ "use strict"; | ||
return function (target, propertyKey) { | ||
const fieldMetadata = decorator_utils_1.determineFieldMetadataFromProps(propertyKey, intProps); | ||
const fieldMetadata = (0, decorator_utils_1.determineFieldMetadataFromProps)(propertyKey, intProps); | ||
const typeMetadata = { | ||
@@ -29,6 +29,6 @@ typeName: 'primitive-defined-type', | ||
}; | ||
decorator_utils_1.storeAvroFieldReflectionMetadata(fieldMetadata, target, propertyKey); | ||
decorator_utils_1.storeAvroFieldTypeReflectionMetadata(typeMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldReflectionMetadata)(fieldMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldTypeReflectionMetadata)(typeMetadata, target, propertyKey); | ||
}; | ||
} | ||
exports.AvroInt = AvroInt; |
@@ -22,3 +22,3 @@ "use strict"; | ||
return function (target, propertyKey) { | ||
const fieldMetadata = decorator_utils_1.determineFieldMetadataFromProps(propertyKey, longProps); | ||
const fieldMetadata = (0, decorator_utils_1.determineFieldMetadataFromProps)(propertyKey, longProps); | ||
const typeMetadata = { | ||
@@ -29,6 +29,6 @@ typeName: 'primitive-defined-type', | ||
}; | ||
decorator_utils_1.storeAvroFieldReflectionMetadata(fieldMetadata, target, propertyKey); | ||
decorator_utils_1.storeAvroFieldTypeReflectionMetadata(typeMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldReflectionMetadata)(fieldMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldTypeReflectionMetadata)(typeMetadata, target, propertyKey); | ||
}; | ||
} | ||
exports.AvroLong = AvroLong; |
@@ -22,13 +22,13 @@ "use strict"; | ||
return function (target, propertyKey) { | ||
const fieldMetadata = decorator_utils_1.determineFieldMetadataFromProps(propertyKey, mapProps); | ||
const fieldMetadata = (0, decorator_utils_1.determineFieldMetadataFromProps)(propertyKey, mapProps); | ||
const typeMetadata = { | ||
typeName: 'map-type', | ||
values: decorator_utils_1.resolvePrimitiveRefOrRecordType(mapProps.ofType), | ||
values: (0, decorator_utils_1.resolvePrimitiveRefOrRecordType)(mapProps.ofType), | ||
default: mapProps.mapDefault, | ||
nullable: mapProps?.nullable ?? false, | ||
}; | ||
decorator_utils_1.storeAvroFieldReflectionMetadata(fieldMetadata, target, propertyKey); | ||
decorator_utils_1.storeAvroFieldTypeReflectionMetadata(typeMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldReflectionMetadata)(fieldMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldTypeReflectionMetadata)(typeMetadata, target, propertyKey); | ||
}; | ||
} | ||
exports.AvroMap = AvroMap; |
@@ -22,3 +22,3 @@ "use strict"; | ||
return function (target, propertyKey) { | ||
const fieldMetadata = decorator_utils_1.determineFieldMetadataFromProps(propertyKey, nullProps); | ||
const fieldMetadata = (0, decorator_utils_1.determineFieldMetadataFromProps)(propertyKey, nullProps); | ||
const typeMetadata = { | ||
@@ -29,6 +29,6 @@ typeName: 'primitive-defined-type', | ||
}; | ||
decorator_utils_1.storeAvroFieldReflectionMetadata(fieldMetadata, target, propertyKey); | ||
decorator_utils_1.storeAvroFieldTypeReflectionMetadata(typeMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldReflectionMetadata)(fieldMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldTypeReflectionMetadata)(typeMetadata, target, propertyKey); | ||
}; | ||
} | ||
exports.AvroNull = AvroNull; |
@@ -31,3 +31,3 @@ "use strict"; | ||
return function (target, propertyKey) { | ||
const fieldMetadata = decorator_utils_1.determineFieldMetadataFromProps(propertyKey, recordProps); | ||
const fieldMetadata = (0, decorator_utils_1.determineFieldMetadataFromProps)(propertyKey, recordProps); | ||
const typeMetadata = { | ||
@@ -38,6 +38,6 @@ typeName: 'record-type', | ||
}; | ||
decorator_utils_1.storeAvroFieldReflectionMetadata(fieldMetadata, target, propertyKey); | ||
decorator_utils_1.storeAvroFieldTypeReflectionMetadata(typeMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldReflectionMetadata)(fieldMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldTypeReflectionMetadata)(typeMetadata, target, propertyKey); | ||
}; | ||
} | ||
exports.AvroRecord = AvroRecord; |
@@ -23,3 +23,3 @@ "use strict"; | ||
return function (target, propertyKey) { | ||
const fieldMetadata = decorator_utils_1.determineFieldMetadataFromProps(propertyKey, referenceProps); | ||
const fieldMetadata = (0, decorator_utils_1.determineFieldMetadataFromProps)(propertyKey, referenceProps); | ||
const typeMetadata = { | ||
@@ -30,6 +30,6 @@ typeName: 'referenced-defined-type', | ||
}; | ||
decorator_utils_1.storeAvroFieldReflectionMetadata(fieldMetadata, target, propertyKey); | ||
decorator_utils_1.storeAvroFieldTypeReflectionMetadata(typeMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldReflectionMetadata)(fieldMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldTypeReflectionMetadata)(typeMetadata, target, propertyKey); | ||
}; | ||
} | ||
exports.AvroReferenceByName = AvroReferenceByName; |
@@ -22,3 +22,3 @@ "use strict"; | ||
return function (target, propertyKey) { | ||
const fieldMetadata = decorator_utils_1.determineFieldMetadataFromProps(propertyKey, stringProps); | ||
const fieldMetadata = (0, decorator_utils_1.determineFieldMetadataFromProps)(propertyKey, stringProps); | ||
const typeMetadata = { | ||
@@ -29,6 +29,6 @@ typeName: 'primitive-defined-type', | ||
}; | ||
decorator_utils_1.storeAvroFieldReflectionMetadata(fieldMetadata, target, propertyKey); | ||
decorator_utils_1.storeAvroFieldTypeReflectionMetadata(typeMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldReflectionMetadata)(fieldMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldTypeReflectionMetadata)(typeMetadata, target, propertyKey); | ||
}; | ||
} | ||
exports.AvroString = AvroString; |
@@ -38,12 +38,12 @@ "use strict"; | ||
return function (target, propertyKey) { | ||
const fieldMetadata = decorator_utils_1.determineFieldMetadataFromProps(propertyKey, fieldProps); | ||
const fieldMetadata = (0, decorator_utils_1.determineFieldMetadataFromProps)(propertyKey, fieldProps); | ||
const typeMetadata = { | ||
typeName: 'union-type', | ||
types: unionTypes.map((type) => decorator_utils_1.resolveInlineTypeDefinition(type)), | ||
types: unionTypes.map((type) => (0, decorator_utils_1.resolveInlineTypeDefinition)(type)), | ||
nullable: fieldProps?.nullable ?? false, | ||
}; | ||
decorator_utils_1.storeAvroFieldReflectionMetadata(fieldMetadata, target, propertyKey); | ||
decorator_utils_1.storeAvroFieldTypeReflectionMetadata(typeMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldReflectionMetadata)(fieldMetadata, target, propertyKey); | ||
(0, decorator_utils_1.storeAvroFieldTypeReflectionMetadata)(typeMetadata, target, propertyKey); | ||
}; | ||
} | ||
exports.AvroUnion = AvroUnion; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./avro-array.decorator"), exports); | ||
tslib_1.__exportStar(require("./avro-boolean.decorator"), exports); | ||
tslib_1.__exportStar(require("./avro-bytes.decorator"), exports); | ||
tslib_1.__exportStar(require("./avro-double.decorator"), exports); | ||
tslib_1.__exportStar(require("./avro-enum.decorator"), exports); | ||
tslib_1.__exportStar(require("./avro-fixed.decorator"), exports); | ||
tslib_1.__exportStar(require("./avro-float.decorator"), exports); | ||
tslib_1.__exportStar(require("./avro-int.decorator"), exports); | ||
tslib_1.__exportStar(require("./avro-long.decorator"), exports); | ||
tslib_1.__exportStar(require("./avro-map.decorator"), exports); | ||
tslib_1.__exportStar(require("./avro-null.decorator"), exports); | ||
tslib_1.__exportStar(require("./avro-record.decorator"), exports); | ||
tslib_1.__exportStar(require("./avro-reference-by-name.decorator"), exports); | ||
tslib_1.__exportStar(require("./avro-string.decorator"), exports); | ||
tslib_1.__exportStar(require("./avro-union.decorator"), exports); | ||
tslib_1.__exportStar(require("./record.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro-array.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro-boolean.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro-bytes.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro-double.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro-enum.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro-fixed.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro-float.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro-int.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro-long.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro-map.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro-null.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro-record.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro-reference-by-name.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro-string.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro-union.decorator"), exports); | ||
(0, tslib_1.__exportStar)(require("./record.decorator"), exports); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./decorators"), exports); | ||
tslib_1.__exportStar(require("./schema-builder"), exports); | ||
tslib_1.__exportStar(require("./types"), exports); | ||
tslib_1.__exportStar(require("./avro.types"), exports); | ||
(0, tslib_1.__exportStar)(require("./decorators"), exports); | ||
(0, tslib_1.__exportStar)(require("./schema-builder"), exports); | ||
(0, tslib_1.__exportStar)(require("./types"), exports); | ||
(0, tslib_1.__exportStar)(require("./avro.types"), exports); |
@@ -5,3 +5,3 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const yargs_1 = tslib_1.__importDefault(require("yargs/yargs")); | ||
const yargs_1 = (0, tslib_1.__importDefault)(require("yargs/yargs")); | ||
const path_utils_1 = require("./path-utils"); | ||
@@ -12,3 +12,3 @@ const model_loader_1 = require("./model-loader"); | ||
async function parseArgs(args) { | ||
const parsedYargs = yargs_1.default(args) | ||
const parsedYargs = (0, yargs_1.default)(args) | ||
.option('config', { | ||
@@ -33,3 +33,3 @@ alias: 'c', | ||
const configFileInput = configLocation ?? 'avro-decorators.config.ts'; | ||
const configFilePath = path_utils_1.absolute(configFileInput); | ||
const configFilePath = (0, path_utils_1.absolute)(configFileInput); | ||
let config; | ||
@@ -55,3 +55,3 @@ try { | ||
if (config.outDir) { | ||
config.outDir = path_utils_1.absolute(config.outDir); | ||
config.outDir = (0, path_utils_1.absolute)(config.outDir); | ||
} | ||
@@ -86,3 +86,3 @@ return { config }; | ||
} | ||
else if (!model_loader_1.isAvroDecoratedModel(model.class)) { | ||
else if (!(0, model_loader_1.isAvroDecoratedModel)(model.class)) { | ||
invalidities.push(`'models[${idx}].class' must be a model decorated with the avro decorator '@Record(...)'`); | ||
@@ -89,0 +89,0 @@ } |
@@ -53,3 +53,3 @@ "use strict"; | ||
function resolvePrimitiveRefOrRecordType(ofType) { | ||
if (typeof ofType === 'string' && avro_helper_1.isPrimitiveDefinedType(ofType)) { | ||
if (typeof ofType === 'string' && (0, avro_helper_1.isPrimitiveDefinedType)(ofType)) { | ||
return { | ||
@@ -76,3 +76,3 @@ typeName: 'primitive-defined-type', | ||
function resolveInlineTypeDefinition(typeDef) { | ||
if (typeof typeDef === 'string' && avro_helper_1.isPrimitiveDefinedType(typeDef)) { | ||
if (typeof typeDef === 'string' && (0, avro_helper_1.isPrimitiveDefinedType)(typeDef)) { | ||
return { | ||
@@ -79,0 +79,0 @@ typeName: 'primitive-defined-type', |
@@ -5,3 +5,3 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const path = tslib_1.__importStar(require("path")); | ||
const path = (0, tslib_1.__importStar)(require("path")); | ||
const fs_1 = require("fs"); | ||
@@ -12,5 +12,5 @@ const schema_builder_1 = require("../schema-builder"); | ||
return models.map((model) => { | ||
const schema = schema_builder_1.avroSchemaFromClass(model.class); | ||
const valid = avro_helper_1.isSchemaValid(schema); | ||
const name = avro_helper_1.getSchemaStringName(schema); | ||
const schema = (0, schema_builder_1.avroSchemaFromClass)(model.class); | ||
const valid = (0, avro_helper_1.isSchemaValid)(schema); | ||
const name = (0, avro_helper_1.getSchemaStringName)(schema); | ||
const fileName = model.avscFileName ?? `${name}.avsc`; | ||
@@ -53,3 +53,3 @@ return { | ||
await fs_1.promises.writeFile(outFilePath, writeableModel); | ||
logger.log(` * wrote ${avro_helper_1.getSchemaStringName(model.schema)} to ${model.fileName}`); | ||
logger.log(` * wrote ${(0, avro_helper_1.getSchemaStringName)(model.schema)} to ${model.fileName}`); | ||
} | ||
@@ -56,0 +56,0 @@ } |
@@ -5,3 +5,3 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const path = tslib_1.__importStar(require("path")); | ||
const path = (0, tslib_1.__importStar)(require("path")); | ||
function absolute(filePath) { | ||
@@ -8,0 +8,0 @@ if (path.isAbsolute(filePath)) { |
@@ -11,13 +11,13 @@ "use strict"; | ||
try { | ||
const { parsedYargs, command } = await config_loader_1.parseArgs(processArgv.slice(2)); | ||
const { parsedYargs, command } = await (0, config_loader_1.parseArgs)(processArgv.slice(2)); | ||
helpPrinter = parsedYargs; | ||
const argv = await parsedYargs.argv; | ||
const { config } = config_loader_1.loadConfig(argv.config); | ||
const models = await model_loader_1.getModels(config.models); | ||
const { config } = (0, config_loader_1.loadConfig)(argv.config); | ||
const models = await (0, model_loader_1.getModels)(config.models); | ||
if (command === 'generate') { | ||
if (config.outDir) { | ||
await model_loader_1.writeSchemas(models, config.outDir, logger); | ||
await (0, model_loader_1.writeSchemas)(models, config.outDir, logger); | ||
} | ||
else { | ||
model_loader_1.printSchemas(models, logger); | ||
(0, model_loader_1.printSchemas)(models, logger); | ||
} | ||
@@ -24,0 +24,0 @@ } |
{ | ||
"name": "avro-decorators", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Typescript class decorators to model your avro schema", | ||
"main": "build/index.js", | ||
"bin": "build/bin/cli.js", | ||
"engines": { | ||
"node": ">=14" | ||
}, | ||
"engineStrict": true, | ||
"scripts": { | ||
@@ -23,14 +27,14 @@ "test": "jest", | ||
"tslib": "^2.2.0", | ||
"yargs": "^17.0.1" | ||
"yargs": "^17.3.0" | ||
}, | ||
"devDependencies": { | ||
"@semantic-release/changelog": "^5.0.1", | ||
"@semantic-release/git": "^9.0.0", | ||
"@types/jest": "^26.0.23", | ||
"@types/node": "^15.12.4", | ||
"@semantic-release/changelog": "^6.0.1", | ||
"@semantic-release/git": "^10.0.1", | ||
"@types/jest": "^27.0.0", | ||
"@types/node": "^16.11.11", | ||
"@types/yargs": "^17.0.0", | ||
"execa": "^5.1.1", | ||
"jest": "^27.0.4", | ||
"jest": "^27.4.3", | ||
"rimraf": "^3.0.2", | ||
"semantic-release": "^17.4.4", | ||
"semantic-release": "^18.0.1", | ||
"ts-jest": "^27.0.3", | ||
@@ -37,0 +41,0 @@ "typescript": "^4.2.4" |
@@ -7,3 +7,4 @@ <h1 align="center">Avro Decorators</h1> | ||
<a href="https://www.npmjs.com/package/avro-decorators"><img src="https://img.shields.io/npm/v/avro-decorators/latest.svg?style=flat-square" alt="NPM Version" /></a> | ||
<a href="https://github.com/wtho/avro-decorators/blob/main/LICENSE"><img src="https://img.shields.io/github/workflow/status/wtho/avro-decorators/test/main?style=flat-square" alt="CI" /></a> | ||
<a href="https://github.com/wtho/avro-decorators/actions/workflows/test.yml"><img src="https://img.shields.io/github/workflow/status/wtho/avro-decorators/test/main?style=flat-square" alt="CI Tests Pipeline" /></a> | ||
<a href="https://coveralls.io/github/wtho/avro-decorators?branch=main"><img src="https://img.shields.io/coveralls/github/wtho/avro-decorators?style=flat-square" alt="Test Coverage" /></a> | ||
<a href="https://github.com/wtho/avro-decorators/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/avro-decorators?style=flat-square" alt="GitHub license" /></a> | ||
@@ -10,0 +11,0 @@ </p> |
@@ -5,2 +5,3 @@ module.exports = { | ||
'@semantic-release/release-notes-generator', | ||
'@semantic-release/changelog', | ||
'@semantic-release/npm', | ||
@@ -7,0 +8,0 @@ '@semantic-release/github', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79278
64
1966
224
Updatedyargs@^17.3.0