Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@odda-studio/cms-models

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@odda-studio/cms-models - npm Package Compare versions

Comparing version
1.0.34
to
1.0.35
+15
-17
export-schema.js

@@ -1,17 +0,15 @@

// const tsj = require('ts-json-schema-generator');
// const fs = require('fs');
//
// /** @type {import('ts-json-schema-generator/dist/src/Config').Config} */
// const config = {
// path: __dirname + '/schema-def.ts',
// tsconfig: __dirname + '/tsconfig.json',
// type: '*', // Or <type-name> if you want to generate schema for that one type only
// };
//
// const output_path = 'schema.json';
//
// const schema = tsj.createGenerator(config).createSchema(config.type);
// const schemaString = JSON.stringify(schema, null, 2);
// fs.writeFile(output_path, schemaString, (err) => {
// if (err) throw err;
// });
const tsj = require('ts-json-schema-generator');
const fs = require('fs');
/** @type {import('ts-json-schema-generator/dist/src/Config').Config} */
const config = {
path: __dirname + '/schema-def.ts',
tsconfig: __dirname + '/tsconfig.json',
type: '*', // Or <type-name> if you want to generate schema for that one type only
};
const output_path = 'schema.json';
const schema = tsj.createGenerator(config).createSchema(config.type);
const schemaString = JSON.stringify(schema, null, 2);
fs.writeFile(output_path, schemaString, (err) => {
if (err)
throw err;
});

@@ -383,2 +383,6 @@ import { ColumnType } from './column-type';

}>;
/**
* if set on true, when calling create/replace method field will be omitted
*/
ignoreCreateOrReplace?: boolean;
}

@@ -385,0 +389,0 @@ export interface EntitySchemaRelationOptions {

@@ -230,2 +230,3 @@ "use strict";

'nullable',
'ignoreCreateOrReplace',
];

@@ -280,2 +281,3 @@ keys.forEach((key) => {

'required',
'ignoreCreateOrReplace',
];

@@ -282,0 +284,0 @@ keys.forEach((key) => delete res[key]);

{
"name": "@odda-studio/cms-models",
"version": "1.0.34",
"version": "1.0.35",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

import { IApplication } from './models';
import { EntitySchemaColumnOptions, EntitySchemaConfiguration } from './model';
export interface EntitiesConfiguration {
application: IApplication;
application?: IApplication;
defaultColumns?: {
[key: string]: EntitySchemaColumnOptions;
};
tables: {
tables?: {
[key: string]: EntitySchemaConfiguration;
};
}