@framers/sql-storage-adapter 0.6.13 → 0.6.15

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.
@@ -0,0 +1,13 @@
1
+ /** A string with something in it. */
2
+ export const isNonEmpty = (value) => typeof value === 'string' && value.length > 0;
3
+ /**
4
+ * Whether Postgres options name a server: a connection string, or a host,
5
+ * database or user. `{ connectionString: process.env.DATABASE_URL }` with
6
+ * DATABASE_URL unset names none.
7
+ */
8
+ export const namesPostgresServer = (options) => Boolean(options &&
9
+ (isNonEmpty(options.connectionString) ||
10
+ isNonEmpty(options.host) ||
11
+ isNonEmpty(options.database) ||
12
+ isNonEmpty(options.user)));
13
+ //# sourceMappingURL=postgresTarget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postgresTarget.js","sourceRoot":"","sources":["../../src/shared/postgresTarget.ts"],"names":[],"mappings":"AAEA,qCAAqC;AACrC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAc,EAAmB,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;AAE7G;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAA2C,EAAW,EAAE,CAC1F,OAAO,CACL,OAAO;IACL,CAAC,UAAU,CAAC,OAAO,CAAC,gBAAgB,CAAC;QACnC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC;QACxB,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC;QAC5B,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAC9B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@framers/sql-storage-adapter",
3
- "version": "0.6.13",
3
+ "version": "0.6.15",
4
4
  "description": "Robust cross-platform SQL storage abstraction with automatic fallbacks and runtime detection",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -111,6 +111,7 @@
111
111
  "@vitest/coverage-v8": "^3.2.7",
112
112
  "eslint": "^9.13.0",
113
113
  "eslint-config-prettier": "^9.1.0",
114
+ "fake-indexeddb": "^6.2.5",
114
115
  "patch-package": "^8.0.0",
115
116
  "rimraf": "^5.0.7",
116
117
  "semantic-release": "^24.1.0",