knex-schema-inspector
Advanced tools
Comparing version 1.5.8 to 1.5.9
@@ -59,4 +59,4 @@ "use strict"; | ||
return null; | ||
value = value.replace(/^\((.*)\)$/, '$1'); | ||
value = value.replace(/^\'(.*)\'$/, '$1'); | ||
value = value.replace(/^\(([\s\S]*)\)$/, '$1'); | ||
value = value.replace(/^\'([\s\S]*)\'$/, '$1'); | ||
return isNaN(value) ? String(value) : Number(value); | ||
@@ -63,0 +63,0 @@ } |
@@ -73,3 +73,3 @@ "use strict"; | ||
var _a = type.split('::'), value = _a[0], cast = _a[1]; | ||
value = value.replace(/^\'(.*)\'$/, '$1'); | ||
value = value.replace(/^\'([\s\S]*)\'$/, '$1'); | ||
if (/.*json.*/.test(cast)) | ||
@@ -76,0 +76,0 @@ return JSON.parse(value); |
@@ -50,4 +50,4 @@ import { Knex } from 'knex'; | ||
value = value.replace(/^\((.*)\)$/, '$1'); | ||
value = value.replace(/^\'(.*)\'$/, '$1'); | ||
value = value.replace(/^\(([\s\S]*)\)$/, '$1'); | ||
value = value.replace(/^\'([\s\S]*)\'$/, '$1'); | ||
@@ -54,0 +54,0 @@ return isNaN(value as any) ? String(value) : Number(value); |
@@ -70,3 +70,3 @@ import { Knex } from 'knex'; | ||
value = value.replace(/^\'(.*)\'$/, '$1'); | ||
value = value.replace(/^\'([\s\S]*)\'$/, '$1'); | ||
@@ -73,0 +73,0 @@ if (/.*json.*/.test(cast)) return JSON.parse(value); |
{ | ||
"name": "knex-schema-inspector", | ||
"version": "1.5.8", | ||
"version": "1.5.9", | ||
"description": "Utility for extracting information about existing DB schema", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
289629