@sprucelabs/postgres-data-store 0.0.3 → 0.1.0

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 @@
1
+ export { default as PostgresDatabase } from './PostgresDatabase';
@@ -1,2 +1,4 @@
1
- "use strict";
2
- //exports go here
1
+ export { default as PostgresDatabase } from './PostgresDatabase.js';
2
+ import { DatabaseFactory } from '@sprucelabs/data-stores';
3
+ import PostgresDatabase from './PostgresDatabase.js';
4
+ DatabaseFactory.addAdapter('postgres://', PostgresDatabase);
package/build/index.d.ts CHANGED
@@ -0,0 +1 @@
1
+ export { default as PostgresDatabase } from './PostgresDatabase';
package/build/index.js CHANGED
@@ -1,2 +1,11 @@
1
1
  "use strict";
2
- //exports go here
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PostgresDatabase = void 0;
7
+ var PostgresDatabase_1 = require("./PostgresDatabase");
8
+ Object.defineProperty(exports, "PostgresDatabase", { enumerable: true, get: function () { return __importDefault(PostgresDatabase_1).default; } });
9
+ const data_stores_1 = require("@sprucelabs/data-stores");
10
+ const PostgresDatabase_2 = __importDefault(require("./PostgresDatabase"));
11
+ data_stores_1.DatabaseFactory.addAdapter('postgres://', PostgresDatabase_2.default);
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "sprucebot",
24
24
  "sprucelabs"
25
25
  ],
26
- "version": "0.0.3",
26
+ "version": "0.1.0",
27
27
  "scripts": {
28
28
  "build.ci": "yarn build.tsc && yarn build.resolve-paths && yarn lint",
29
29
  "build.dev": "yarn build.tsc --sourceMap ; yarn resolve-paths.lint",