Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@directus/schema

Package Overview
Dependencies
Maintainers
3
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@directus/schema - npm Package Compare versions

Comparing version 9.0.0-rc.85 to 9.0.0-rc.86

dist/utils/strip-quotes.d.ts

3

dist/dialects/oracledb.js

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

var oracledb_1 = __importDefault(require("knex-schema-inspector/dist/dialects/oracledb"));
var strip_quotes_1 = require("../utils/strip-quotes");
var Oracle = /** @class */ (function (_super) {

@@ -122,3 +123,3 @@ __extends(Oracle, _super);

var hasAutoIncrement = !column.default_value && column.data_type === 'NUMBER' && column.column_key === 'P';
overview[column.table_name].columns[column.column_name] = __assign(__assign({}, column), { is_nullable: column.is_nullable === 'Y', default_value: hasAutoIncrement ? 'AUTO_INCREMENT' : column.default_value });
overview[column.table_name].columns[column.column_name] = __assign(__assign({}, column), { is_nullable: column.is_nullable === 'Y', default_value: hasAutoIncrement ? 'AUTO_INCREMENT' : strip_quotes_1.stripQuotes(column.default_value) });
};

@@ -125,0 +126,0 @@ for (_i = 0, columns_1 = columns; _i < columns_1.length; _i++) {

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

var extract_type_1 = __importDefault(require("knex-schema-inspector/dist/utils/extract-type"));
var strip_quotes_1 = require("../utils/strip-quotes");
var SQLite = /** @class */ (function (_super) {

@@ -102,3 +103,3 @@ __extends(SQLite, _super);

? 'AUTO_INCREMENT'
: column.dflt_value,
: strip_quotes_1.stripQuotes(column.dflt_value),
is_nullable: column.notnull == 0,

@@ -105,0 +106,0 @@ data_type: extract_type_1.default(column.type),

{
"name": "@directus/schema",
"version": "9.0.0-rc.85",
"version": "9.0.0-rc.86",
"description": "Utility for extracting information about existing DB schema",

@@ -48,3 +48,3 @@ "main": "dist/index.js",

},
"gitHead": "f96eeb2c83eabd356191e2c3397f27b721ea4900"
"gitHead": "3390430c04973aa5b7f4c56f4d04a546b04c15cd"
}

@@ -5,2 +5,3 @@ import KnexOracle from 'knex-schema-inspector/dist/dialects/oracledb';

import { SchemaInspector } from '../types/schema';
import { stripQuotes } from '../utils/strip-quotes';

@@ -91,3 +92,3 @@ export default class Oracle extends KnexOracle implements SchemaInspector {

is_nullable: column.is_nullable === 'Y',
default_value: hasAutoIncrement ? 'AUTO_INCREMENT' : column.default_value,
default_value: hasAutoIncrement ? 'AUTO_INCREMENT' : stripQuotes(column.default_value),
};

@@ -94,0 +95,0 @@ }

@@ -6,2 +6,3 @@ import KnexSQLite from 'knex-schema-inspector/dist/dialects/sqlite';

import { SchemaInspector } from '../types/schema';
import { stripQuotes } from '../utils/strip-quotes';

@@ -43,3 +44,3 @@ type RawColumn = {

? 'AUTO_INCREMENT'
: column.dflt_value,
: stripQuotes(column.dflt_value),
is_nullable: column.notnull == 0,

@@ -46,0 +47,0 @@ data_type: extractType(column.type),

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc