@pi-r/mariadb 0.8.2 → 0.8.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.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- ### @pi-r/mariadb
2
-
3
- https://e-mc.readthedocs.io/en/latest/db/mariadb.html
4
-
5
- ### LICENSE
6
-
1
+ ### @pi-r/mariadb
2
+
3
+ https://e-mc.readthedocs.io/en/latest/db/mariadb.html
4
+
5
+ ### LICENSE
6
+
7
7
  MIT
package/client/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import type { IDb } from '@e-mc/types/lib';
2
-
3
- import type { IDbSourceClient } from '@e-mc/db/types';
4
-
5
- import type { MariaDBCredential, MariaDBDataSource } from '../types';
6
-
7
- declare const MariaDB: IDbSourceClient<MariaDBDataSource> & {
8
- setAuthentication(this: IDb, credential: MariaDBCredential): void;
9
- };
10
-
1
+ import type { IDb } from '@e-mc/types/lib';
2
+
3
+ import type { IDbSourceClient } from '@e-mc/db/types';
4
+
5
+ import type { MariaDBCredential, MariaDBDataSource } from '../types';
6
+
7
+ declare const MariaDB: IDbSourceClient<MariaDBDataSource> & {
8
+ setAuthentication(this: IDb, credential: MariaDBCredential): void;
9
+ };
10
+
11
11
  export = MariaDB;
package/client/pool.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type { DbPoolConstructor } from '@e-mc/types/lib/db';
2
-
3
- import type { DbPoolCredential, MariaDBDataSource } from '../types';
4
-
5
- import type { Pool, PoolConnection } from 'mariadb';
6
-
7
- declare const MariaDBPool: DbPoolConstructor<MariaDBDataSource, Pool, PoolConnection, DbPoolCredential>;
8
-
1
+ import type { DbPoolConstructor } from '@e-mc/types/lib/db';
2
+
3
+ import type { DbPoolCredential, MariaDBDataSource } from '../types';
4
+
5
+ import type { Pool, PoolConnection } from 'mariadb';
6
+
7
+ declare const MariaDBPool: DbPoolConstructor<MariaDBDataSource, Pool, PoolConnection, DbPoolCredential>;
8
+
9
9
  export = MariaDBPool;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/mariadb",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "MariaDB client driver for E-mc.",
5
5
  "main": "client/index.js",
6
6
  "types": "client/index.d.ts",
@@ -21,8 +21,8 @@
21
21
  "license": "MIT",
22
22
  "homepage": "https://github.com/anpham6/pi-r#readme",
23
23
  "dependencies": {
24
- "@e-mc/db": "^0.10.2",
25
- "@e-mc/types": "^0.10.2",
24
+ "@e-mc/db": "^0.10.3",
25
+ "@e-mc/types": "^0.10.3",
26
26
  "mariadb": "^3.3.2"
27
27
  }
28
28
  }
package/types/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import type { DbDataSource } from '@e-mc/types/lib/squared';
2
-
3
- import type { IdentifierAction } from '@e-mc/types/lib/core';
4
- import type { ExecuteAction, ServerAuth } from '@e-mc/types/lib/db';
5
-
6
- import type { PoolConfig, QueryConfig } from 'mariadb';
7
-
8
- export interface MariaDBDataSource<T = unknown> extends DbDataSource<string | QueryConfig, unknown, unknown, MariaDBCredential, string>, ExecuteAction<T> {
9
- source: "mariadb";
10
- }
11
-
12
- export type MariaDBCredential = PoolConfig & ServerAuth;
1
+ import type { DbDataSource } from '@e-mc/types/lib/squared';
2
+
3
+ import type { IdentifierAction } from '@e-mc/types/lib/core';
4
+ import type { ExecuteAction, ServerAuth } from '@e-mc/types/lib/db';
5
+
6
+ import type { PoolConfig, QueryConfig } from 'mariadb';
7
+
8
+ export interface MariaDBDataSource<T = unknown> extends DbDataSource<string | QueryConfig, unknown, unknown, MariaDBCredential, string>, ExecuteAction<T> {
9
+ source: "mariadb";
10
+ }
11
+
12
+ export type MariaDBCredential = PoolConfig & ServerAuth;
13
13
  export type DbPoolCredential = PoolConfig & IdentifierAction;