@mikro-orm/postgresql 6.6.3-dev.8 → 6.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.PostgreSqlPlatform = void 0;
7
7
  const pg_1 = require("pg");
8
+ const postgres_array_1 = __importDefault(require("postgres-array"));
8
9
  const postgres_date_1 = __importDefault(require("postgres-date"));
9
10
  const postgres_interval_1 = __importDefault(require("postgres-interval"));
10
11
  const core_1 = require("@mikro-orm/core");
@@ -185,18 +186,7 @@ class PostgreSqlPlatform extends knex_1.AbstractSqlPlatform {
185
186
  return `{${values.map(v => quote('' + v)).join(',')}}`;
186
187
  }
187
188
  unmarshallArray(value) {
188
- if (value === '{}') {
189
- return [];
190
- }
191
- return value.substring(1, value.length - 1).split(',').map(v => {
192
- if (v === `""`) {
193
- return '';
194
- }
195
- if (v.match(/"(.*)"/)) {
196
- return v.substring(1, v.length - 1).replaceAll('\\"', '"');
197
- }
198
- return v;
199
- });
189
+ return postgres_array_1.default.parse(value);
200
190
  }
201
191
  getVarcharTypeDeclarationSQL(column) {
202
192
  if (column.length === -1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/postgresql",
3
- "version": "6.6.3-dev.8",
3
+ "version": "6.6.3",
4
4
  "description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -58,16 +58,16 @@
58
58
  "access": "public"
59
59
  },
60
60
  "dependencies": {
61
- "@mikro-orm/knex": "6.6.3-dev.8",
61
+ "@mikro-orm/knex": "6.6.3",
62
62
  "pg": "8.16.3",
63
63
  "postgres-array": "3.0.4",
64
64
  "postgres-date": "2.1.0",
65
65
  "postgres-interval": "4.0.2"
66
66
  },
67
67
  "devDependencies": {
68
- "@mikro-orm/core": "^6.6.2"
68
+ "@mikro-orm/core": "^6.6.3"
69
69
  },
70
70
  "peerDependencies": {
71
- "@mikro-orm/core": "6.6.3-dev.8"
71
+ "@mikro-orm/core": "^6.0.0"
72
72
  }
73
73
  }