@spica-devkit/database 0.18.10 → 0.18.11-pre1

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/dist/index.d.ts CHANGED
@@ -1 +1,10 @@
1
- export * from "./src/index";
1
+ import * as _mongodb from 'mongodb';
2
+
3
+ declare function database(): Promise<_mongodb.Db>;
4
+ declare function close(force?: boolean): Promise<void> | void;
5
+ declare function isConnected(): boolean;
6
+
7
+ declare const objectId: (id?: string | number | _mongodb.ObjectId) => _mongodb.BSON.ObjectId;
8
+ declare const ObjectId: typeof _mongodb.BSON.ObjectId;
9
+
10
+ export { ObjectId, close, database, isConnected, objectId };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spica-devkit/database",
3
3
  "license": "AGPLv3",
4
- "version": "0.18.10",
4
+ "version": "0.18.11-pre1",
5
5
  "description": "Database package for Spica functions.",
6
6
  "author": "spica",
7
7
  "keywords": [
@@ -1,2 +0,0 @@
1
- export declare function checkDocument(document: object, path?: string): void;
2
- export declare function checkDocuments(documents: object[]): void;
@@ -1,4 +0,0 @@
1
- import { _mongodb } from "./mongo";
2
- export declare function database(): Promise<_mongodb.Db>;
3
- export declare function close(force?: boolean): Promise<void> | void;
4
- export declare function isConnected(): boolean;
@@ -1,2 +0,0 @@
1
- export * from "./database";
2
- export * from "./objectid";
@@ -1,3 +0,0 @@
1
- import type * as _mongodb from "mongodb";
2
- declare let mongodb: typeof import("mongodb");
3
- export { mongodb, _mongodb };
@@ -1,3 +0,0 @@
1
- import { _mongodb } from "./mongo";
2
- export declare const objectId: (id?: string | number | _mongodb.ObjectId) => _mongodb.BSON.ObjectId;
3
- export declare const ObjectId: typeof _mongodb.BSON.ObjectId;