@aneuhold/be-ts-db-lib 1.0.3 → 1.0.4
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.
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import ApiKeyRepository from './repositories/common/ApiKeyRepository';
|
|
2
2
|
import UserRepository from './repositories/common/UserRepository';
|
|
3
|
-
|
|
3
|
+
import DocumentDb from './util/DocumentDb';
|
|
4
|
+
export { UserRepository, ApiKeyRepository, DocumentDb };
|
|
4
5
|
export type {};
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,wCAAwC,CAAC;AACtE,OAAO,cAAc,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,wCAAwC,CAAC;AACtE,OAAO,cAAc,MAAM,sCAAsC,CAAC;AAClE,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAG3C,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC;AAGxD,YAAY,EAAE,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -3,8 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ApiKeyRepository = exports.UserRepository = void 0;
|
|
6
|
+
exports.DocumentDb = exports.ApiKeyRepository = exports.UserRepository = void 0;
|
|
7
7
|
const ApiKeyRepository_1 = __importDefault(require("./repositories/common/ApiKeyRepository"));
|
|
8
8
|
exports.ApiKeyRepository = ApiKeyRepository_1.default;
|
|
9
9
|
const UserRepository_1 = __importDefault(require("./repositories/common/UserRepository"));
|
|
10
10
|
exports.UserRepository = UserRepository_1.default;
|
|
11
|
+
const DocumentDb_1 = __importDefault(require("./util/DocumentDb"));
|
|
12
|
+
exports.DocumentDb = DocumentDb_1.default;
|
|
@@ -15,6 +15,14 @@ it('can create a new document and delete it', async () => {
|
|
|
15
15
|
expect(createResult).toBeTruthy();
|
|
16
16
|
await (0, testsUtil_1.cleanupDoc)(userRepository, newUser);
|
|
17
17
|
});
|
|
18
|
+
// -- Manual Database Operations Section -- //
|
|
19
|
+
it.skip('can add a new test user', async () => {
|
|
20
|
+
const userRepository = UserRepository_1.default.getRepo();
|
|
21
|
+
const newUser = new core_ts_db_lib_1.User('someUser');
|
|
22
|
+
newUser.password = crypto_1.default.randomUUID();
|
|
23
|
+
const createResult = await userRepository.insertNew(newUser);
|
|
24
|
+
expect(createResult).toBeTruthy();
|
|
25
|
+
});
|
|
18
26
|
afterAll(async () => {
|
|
19
27
|
return DocumentDb_1.default.closeDbConnection();
|
|
20
28
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aneuhold/be-ts-db-lib",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A backend database library meant to actually interact with various databases in personal projects",
|
|
5
5
|
"author": "Anton G Neuhold Jr <agneuhold@gmail.com>",
|
|
6
6
|
"license": "MIT",
|