@heychunky/core 0.23.0 → 0.24.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.
- package/dist/admin/index.d.ts +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/master.d.ts +3 -3
- package/dist/admin/master.d.ts.map +1 -1
- package/dist/admin/master.js +3 -3
- package/dist/admin/master.js.map +1 -1
- package/dist/admin/register.js +1 -1
- package/package.json +1 -1
- package/register/README.md +1 -1
package/dist/admin/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* `register.ts` is deliberately absent. It reads the register's migrations off
|
|
8
8
|
* disk, and `new URL("../../register/", import.meta.url)` is an asset reference
|
|
9
|
-
* a bundler resolves statically — so re-exporting it here broke heychunky-
|
|
9
|
+
* a bundler resolves statically — so re-exporting it here broke heychunky-console's
|
|
10
10
|
* build, which does import this barrel. It has its own subpath,
|
|
11
11
|
* `@heychunky/core/register`, for the CLI and the worker. Nothing that serves a
|
|
12
12
|
* request migrates the register's schema, so nothing that serves a request
|
package/dist/admin/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* `register.ts` is deliberately absent. It reads the register's migrations off
|
|
8
8
|
* disk, and `new URL("../../register/", import.meta.url)` is an asset reference
|
|
9
|
-
* a bundler resolves statically — so re-exporting it here broke heychunky-
|
|
9
|
+
* a bundler resolves statically — so re-exporting it here broke heychunky-console's
|
|
10
10
|
* build, which does import this barrel. It has its own subpath,
|
|
11
11
|
* `@heychunky/core/register`, for the CLI and the worker. Nothing that serves a
|
|
12
12
|
* request migrates the register's schema, so nothing that serves a request
|
package/dist/admin/master.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The database that holds the register — who exists, and what they own.
|
|
3
3
|
*
|
|
4
4
|
* Passed in rather than named here. This module used to hardcode
|
|
5
|
-
* heychunky-
|
|
5
|
+
* heychunky-console's production database, which made every register function
|
|
6
6
|
* reach past whatever environment its caller was running in: an API serving
|
|
7
7
|
* its dev database looked up users in production and did not find them.
|
|
8
8
|
*
|
|
@@ -15,12 +15,12 @@ import type { RunContext } from "./run.ts";
|
|
|
15
15
|
/** What the register needs of a database. Satisfied by `db()`. */
|
|
16
16
|
export type Register = Pick<ReturnType<typeof db>, "query" | "write">;
|
|
17
17
|
/**
|
|
18
|
-
* The factory's own register: heychunky-
|
|
18
|
+
* The factory's own register: heychunky-console in production.
|
|
19
19
|
*
|
|
20
20
|
* One register for the operator side, because a developer's laptop and the
|
|
21
21
|
* worker must not each have their own idea of what exists. An app running in
|
|
22
22
|
* dev is a different case and passes its own.
|
|
23
23
|
*/
|
|
24
|
-
export declare const FACTORY_REGISTER = "infisical://heychunky-apps/production/heychunky-
|
|
24
|
+
export declare const FACTORY_REGISTER = "infisical://heychunky-apps/production/heychunky-console/DATABASE_URL";
|
|
25
25
|
export declare const factoryRegister: (ctx: RunContext) => Promise<Register>;
|
|
26
26
|
//# sourceMappingURL=master.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"master.d.ts","sourceRoot":"","sources":["../../src/admin/master.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,kEAAkE;AAClE,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC;AAEtE;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"master.d.ts","sourceRoot":"","sources":["../../src/admin/master.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,kEAAkE;AAClE,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC;AAEtE;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,yEAC2C,CAAC;AAEzE,eAAO,MAAM,eAAe,GAAU,KAAK,UAAU,KAAG,OAAO,CAAC,QAAQ,CAC3B,CAAC"}
|
package/dist/admin/master.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The database that holds the register — who exists, and what they own.
|
|
3
3
|
*
|
|
4
4
|
* Passed in rather than named here. This module used to hardcode
|
|
5
|
-
* heychunky-
|
|
5
|
+
* heychunky-console's production database, which made every register function
|
|
6
6
|
* reach past whatever environment its caller was running in: an API serving
|
|
7
7
|
* its dev database looked up users in production and did not find them.
|
|
8
8
|
*
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { db } from "../services/db.js";
|
|
14
14
|
/**
|
|
15
|
-
* The factory's own register: heychunky-
|
|
15
|
+
* The factory's own register: heychunky-console in production.
|
|
16
16
|
*
|
|
17
17
|
* One register for the operator side, because a developer's laptop and the
|
|
18
18
|
* worker must not each have their own idea of what exists. An app running in
|
|
19
19
|
* dev is a different case and passes its own.
|
|
20
20
|
*/
|
|
21
|
-
export const FACTORY_REGISTER = "infisical://heychunky-apps/production/heychunky-
|
|
21
|
+
export const FACTORY_REGISTER = "infisical://heychunky-apps/production/heychunky-console/DATABASE_URL";
|
|
22
22
|
export const factoryRegister = async (ctx) => db(await ctx.secrets.get(FACTORY_REGISTER));
|
|
23
23
|
//# sourceMappingURL=master.js.map
|
package/dist/admin/master.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"master.js","sourceRoot":"","sources":["../../src/admin/master.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAMvC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAC3B,
|
|
1
|
+
{"version":3,"file":"master.js","sourceRoot":"","sources":["../../src/admin/master.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAMvC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAC3B,sEAAsE,CAAC;AAEzE,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAAE,GAAe,EAAqB,EAAE,CAC1E,EAAE,CAAC,MAAM,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC"}
|
package/dist/admin/register.js
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
*
|
|
36
36
|
* **Reached as `@heychunky/core/register`, not through the admin barrel.** The
|
|
37
37
|
* directory read below is an asset reference that a bundler resolves at build
|
|
38
|
-
* time, and heychunky-
|
|
38
|
+
* time, and heychunky-console imports `@heychunky/core/admin` — so exporting this
|
|
39
39
|
* from there failed the app's build with `Can't resolve '../../register/'`. Its
|
|
40
40
|
* own subpath is the honest boundary rather than a workaround: an app never
|
|
41
41
|
* migrates the register's schema, and the exports map is where this package
|
package/package.json
CHANGED
package/register/README.md
CHANGED
|
@@ -31,7 +31,7 @@ heychunky register verify what must be true of the rows
|
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
All four take `--app <app> --env <environment>` to reach a register other than
|
|
34
|
-
the factory's own. There is more than one: heychunky-
|
|
34
|
+
the factory's own. There is more than one: heychunky-console runs in six
|
|
35
35
|
environments and each has a database of this shape, which is how the schema
|
|
36
36
|
reaches the one the tests and the dev deployment use.
|
|
37
37
|
|