@sqrzro/addons 4.0.0-alpha.2 → 4.0.0-alpha.5
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/interfaces.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { AppConfig } from '@sqrzro/config';
|
|
1
2
|
import type { NodePgDatabase } from 'drizzle-orm/node-postgres';
|
|
2
3
|
export interface AddonProxyResponse {
|
|
3
4
|
data: object;
|
|
4
5
|
redirect?: string | null;
|
|
5
6
|
}
|
|
6
7
|
export type AddonRegisterReturn = {
|
|
7
|
-
register: (db: NodePgDatabase) => void;
|
|
8
|
+
register: (db: NodePgDatabase, appConfig: AppConfig) => void;
|
|
8
9
|
schema?: string;
|
|
9
10
|
};
|
|
10
11
|
export type AddonRegisterFunction<T = object> = (config?: T) => AddonRegisterReturn;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import type { AppConfig } from '@sqrzro/config';
|
|
1
2
|
import type { NodePgDatabase } from 'drizzle-orm/node-postgres';
|
|
2
|
-
import { AddonRegisterReturn } from './interfaces';
|
|
3
|
-
declare function registerAddons(db: NodePgDatabase, addons: AddonRegisterReturn[]): void;
|
|
3
|
+
import type { AddonRegisterReturn } from './interfaces';
|
|
4
|
+
declare function registerAddons(db: NodePgDatabase, appConfig: AppConfig, addons: AddonRegisterReturn[]): void;
|
|
4
5
|
export default registerAddons;
|
package/dist/register-addons.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqrzro/addons",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-alpha.
|
|
4
|
+
"version": "4.0.0-alpha.5",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "ISC",
|
|
@@ -25,19 +25,16 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"drizzle-orm": "^0.45.1",
|
|
27
27
|
"next": "^16.1.6",
|
|
28
|
-
"@sqrzro/
|
|
28
|
+
"@sqrzro/config": "^4.0.0-alpha.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"concurrently": "^9.2.1",
|
|
32
31
|
"prettier": "^3.8.1",
|
|
33
|
-
"rimraf": "^6.1.3",
|
|
34
|
-
"tsc-alias": "^1.8.16",
|
|
35
32
|
"typescript": "^5.9.3",
|
|
36
33
|
"@sqrzro/prettier-config": "^4.0.0-alpha.3"
|
|
37
34
|
},
|
|
38
35
|
"scripts": {
|
|
39
|
-
"build": "
|
|
36
|
+
"build": "tsc",
|
|
40
37
|
"clean": "rimraf ./dist",
|
|
41
|
-
"dev": "
|
|
38
|
+
"dev": "tsc --watch"
|
|
42
39
|
}
|
|
43
40
|
}
|