@atscript/moost-db 0.1.71 → 0.1.73

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.cjs CHANGED
@@ -525,12 +525,12 @@ function isNonEmptyStringArray(value) {
525
525
  return Array.isArray(value) && value.length > 0 && value.every((v) => typeof v === "string");
526
526
  }
527
527
  //#endregion
528
- //#region \0@oxc-project+runtime@0.120.0/helpers/decorateMetadata.js
528
+ //#region \0@oxc-project+runtime@0.127.0/helpers/decorateMetadata.js
529
529
  function __decorateMetadata(k, v) {
530
530
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
531
531
  }
532
532
  //#endregion
533
- //#region \0@oxc-project+runtime@0.120.0/helpers/decorate.js
533
+ //#region \0@oxc-project+runtime@0.127.0/helpers/decorate.js
534
534
  function __decorate(decorators, target, key, desc) {
535
535
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
536
536
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -538,7 +538,7 @@ function __decorate(decorators, target, key, desc) {
538
538
  return c > 3 && r && Object.defineProperty(target, key, r), r;
539
539
  }
540
540
  //#endregion
541
- //#region \0@oxc-project+runtime@0.120.0/helpers/decorateParam.js
541
+ //#region \0@oxc-project+runtime@0.127.0/helpers/decorateParam.js
542
542
  function __decorateParam(paramIndex, decorator) {
543
543
  return function(target, key) {
544
544
  decorator(target, key, paramIndex);
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import * as _uniqu_url0 from "@uniqu/url";
1
+ import * as _$_uniqu_url0 from "@uniqu/url";
2
2
  import { parseUrl } from "@uniqu/url";
3
3
  import { TAtscriptAnnotatedType, TAtscriptDataType, TSerializeOptions, TSerializedAnnotatedType, Validator } from "@atscript/typescript/utils";
4
4
  import { AtscriptDbReadable, AtscriptDbTable, FilterExpr, FlatOf, TCrudOp, TCrudPermissions, TCrudPermissions as TCrudPermissions$1, TDbActionInfo, TDbActionInfo as TDbActionInfo$1, TDbActionIntent, TDbActionIntent as TDbActionIntent$1, TDbActionLevel, TDbActionLevel as TDbActionLevel$1, TDbActionProcessor, TDbFieldMeta, TIdentification, TMetaResponse, Uniquery, UniqueryControls } from "@atscript/db";
5
5
  import { HttpError } from "@moostjs/event-http";
6
- import * as moost from "moost";
6
+ import * as _$moost from "moost";
7
7
  import { Mate, Moost, TConsoleBase, TMateParamMeta, TMoostMetadata } from "moost";
8
- import * as _wooksjs_event_core0 from "@wooksjs/event-core";
8
+ import * as _$_wooksjs_event_core0 from "@wooksjs/event-core";
9
9
 
10
10
  //#region src/as-readable.controller.d.ts
11
11
  /**
@@ -106,7 +106,7 @@ declare abstract class AsReadableController<T extends TAtscriptAnnotatedType = T
106
106
  * get a uniform HTTP 400 response for any offending field/control.
107
107
  */
108
108
  protected checkGates(filter: FilterExpr | undefined, controls: Record<string, unknown>, gates: ReadableGates): HttpError | undefined;
109
- protected parseQueryString(url: string): _uniqu_url0.UrlQuery;
109
+ protected parseQueryString(url: string): _$_uniqu_url0.UrlQuery;
110
110
  /**
111
111
  * Parse a URL keeping only `$*` control keywords; report whether any
112
112
  * non-control parts were present. Used by `/one` routes where the
@@ -533,7 +533,7 @@ declare const ReadableController: (readable: AtscriptDbReadable, prefix?: string
533
533
  declare const ViewController: (readable: AtscriptDbReadable, prefix?: string) => MethodDecorator & ClassDecorator & ParameterDecorator & PropertyDecorator;
534
534
  //#endregion
535
535
  //#region src/validation-interceptor.d.ts
536
- declare const validationErrorTransform: () => moost.TInterceptorDef;
536
+ declare const validationErrorTransform: () => _$moost.TInterceptorDef;
537
537
  declare const UseValidationErrorTransform: () => ClassDecorator & MethodDecorator;
538
538
  //#endregion
539
539
  //#region src/actions/types.d.ts
@@ -826,18 +826,18 @@ interface IdValidationSource {
826
826
  }
827
827
  //#endregion
828
828
  //#region src/actions/id-cache.d.ts
829
- declare const useDbActionId: _wooksjs_event_core0.WookComposable<{
829
+ declare const useDbActionId: _$_wooksjs_event_core0.WookComposable<{
830
830
  load: () => Promise<Record<string, unknown>>;
831
831
  }>;
832
- declare const useDbActionIds: _wooksjs_event_core0.WookComposable<{
832
+ declare const useDbActionIds: _$_wooksjs_event_core0.WookComposable<{
833
833
  load: () => Promise<Record<string, unknown>[]>;
834
834
  }>;
835
835
  //#endregion
836
836
  //#region src/actions/row-cache.d.ts
837
- declare const useDbActionRow: _wooksjs_event_core0.WookComposable<{
837
+ declare const useDbActionRow: _$_wooksjs_event_core0.WookComposable<{
838
838
  load: () => Promise<unknown>;
839
839
  }>;
840
- declare const useDbActionRows: _wooksjs_event_core0.WookComposable<{
840
+ declare const useDbActionRows: _$_wooksjs_event_core0.WookComposable<{
841
841
  load: () => Promise<(Record<string, unknown> | undefined)[]>;
842
842
  }>;
843
843
  //#endregion
@@ -861,11 +861,11 @@ interface DbActionEnvelope {
861
861
  * reads through the same gate. An array or scalar root is rejected with the
862
862
  * same `ValidatorError` envelope as today's strict-shape ID failures.
863
863
  */
864
- declare const dbActionBodySlot: moost.Cached<Promise<DbActionEnvelope>>;
864
+ declare const dbActionBodySlot: _$moost.Cached<Promise<DbActionEnvelope>>;
865
865
  /** Cached `body.input` slot — consumed by `@InputForm()` and `useDbActionInput()`. */
866
- declare const dbActionInputSlot: moost.Cached<Promise<unknown>>;
866
+ declare const dbActionInputSlot: _$moost.Cached<Promise<unknown>>;
867
867
  /** Composable for in-handler reads of the form input. */
868
- declare const useDbActionInput: _wooksjs_event_core0.WookComposable<{
868
+ declare const useDbActionInput: _$_wooksjs_event_core0.WookComposable<{
869
869
  load: () => Promise<unknown>;
870
870
  }>;
871
871
  //#endregion
package/dist/index.d.mts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { TAtscriptAnnotatedType, TAtscriptDataType, TSerializeOptions, TSerializedAnnotatedType, Validator } from "@atscript/typescript/utils";
2
2
  import { HttpError } from "@moostjs/event-http";
3
- import * as moost from "moost";
3
+ import * as _$moost from "moost";
4
4
  import { Mate, Moost, TConsoleBase, TMateParamMeta, TMoostMetadata } from "moost";
5
- import * as _uniqu_url0 from "@uniqu/url";
5
+ import * as _$_uniqu_url0 from "@uniqu/url";
6
6
  import { parseUrl } from "@uniqu/url";
7
7
  import { AtscriptDbReadable, AtscriptDbTable, FilterExpr, FlatOf, TCrudOp, TCrudPermissions, TCrudPermissions as TCrudPermissions$1, TDbActionInfo, TDbActionInfo as TDbActionInfo$1, TDbActionIntent, TDbActionIntent as TDbActionIntent$1, TDbActionLevel, TDbActionLevel as TDbActionLevel$1, TDbActionProcessor, TDbFieldMeta, TIdentification, TMetaResponse, Uniquery, UniqueryControls } from "@atscript/db";
8
- import * as _wooksjs_event_core0 from "@wooksjs/event-core";
8
+ import * as _$_wooksjs_event_core0 from "@wooksjs/event-core";
9
9
 
10
10
  //#region src/as-readable.controller.d.ts
11
11
  /**
@@ -106,7 +106,7 @@ declare abstract class AsReadableController<T extends TAtscriptAnnotatedType = T
106
106
  * get a uniform HTTP 400 response for any offending field/control.
107
107
  */
108
108
  protected checkGates(filter: FilterExpr | undefined, controls: Record<string, unknown>, gates: ReadableGates): HttpError | undefined;
109
- protected parseQueryString(url: string): _uniqu_url0.UrlQuery;
109
+ protected parseQueryString(url: string): _$_uniqu_url0.UrlQuery;
110
110
  /**
111
111
  * Parse a URL keeping only `$*` control keywords; report whether any
112
112
  * non-control parts were present. Used by `/one` routes where the
@@ -533,7 +533,7 @@ declare const ReadableController: (readable: AtscriptDbReadable, prefix?: string
533
533
  declare const ViewController: (readable: AtscriptDbReadable, prefix?: string) => MethodDecorator & ClassDecorator & ParameterDecorator & PropertyDecorator;
534
534
  //#endregion
535
535
  //#region src/validation-interceptor.d.ts
536
- declare const validationErrorTransform: () => moost.TInterceptorDef;
536
+ declare const validationErrorTransform: () => _$moost.TInterceptorDef;
537
537
  declare const UseValidationErrorTransform: () => ClassDecorator & MethodDecorator;
538
538
  //#endregion
539
539
  //#region src/actions/types.d.ts
@@ -826,18 +826,18 @@ interface IdValidationSource {
826
826
  }
827
827
  //#endregion
828
828
  //#region src/actions/id-cache.d.ts
829
- declare const useDbActionId: _wooksjs_event_core0.WookComposable<{
829
+ declare const useDbActionId: _$_wooksjs_event_core0.WookComposable<{
830
830
  load: () => Promise<Record<string, unknown>>;
831
831
  }>;
832
- declare const useDbActionIds: _wooksjs_event_core0.WookComposable<{
832
+ declare const useDbActionIds: _$_wooksjs_event_core0.WookComposable<{
833
833
  load: () => Promise<Record<string, unknown>[]>;
834
834
  }>;
835
835
  //#endregion
836
836
  //#region src/actions/row-cache.d.ts
837
- declare const useDbActionRow: _wooksjs_event_core0.WookComposable<{
837
+ declare const useDbActionRow: _$_wooksjs_event_core0.WookComposable<{
838
838
  load: () => Promise<unknown>;
839
839
  }>;
840
- declare const useDbActionRows: _wooksjs_event_core0.WookComposable<{
840
+ declare const useDbActionRows: _$_wooksjs_event_core0.WookComposable<{
841
841
  load: () => Promise<(Record<string, unknown> | undefined)[]>;
842
842
  }>;
843
843
  //#endregion
@@ -861,11 +861,11 @@ interface DbActionEnvelope {
861
861
  * reads through the same gate. An array or scalar root is rejected with the
862
862
  * same `ValidatorError` envelope as today's strict-shape ID failures.
863
863
  */
864
- declare const dbActionBodySlot: moost.Cached<Promise<DbActionEnvelope>>;
864
+ declare const dbActionBodySlot: _$moost.Cached<Promise<DbActionEnvelope>>;
865
865
  /** Cached `body.input` slot — consumed by `@InputForm()` and `useDbActionInput()`. */
866
- declare const dbActionInputSlot: moost.Cached<Promise<unknown>>;
866
+ declare const dbActionInputSlot: _$moost.Cached<Promise<unknown>>;
867
867
  /** Composable for in-handler reads of the form input. */
868
- declare const useDbActionInput: _wooksjs_event_core0.WookComposable<{
868
+ declare const useDbActionInput: _$_wooksjs_event_core0.WookComposable<{
869
869
  load: () => Promise<unknown>;
870
870
  }>;
871
871
  //#endregion
package/dist/index.mjs CHANGED
@@ -524,12 +524,12 @@ function isNonEmptyStringArray(value) {
524
524
  return Array.isArray(value) && value.length > 0 && value.every((v) => typeof v === "string");
525
525
  }
526
526
  //#endregion
527
- //#region \0@oxc-project+runtime@0.120.0/helpers/decorateMetadata.js
527
+ //#region \0@oxc-project+runtime@0.127.0/helpers/decorateMetadata.js
528
528
  function __decorateMetadata(k, v) {
529
529
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
530
530
  }
531
531
  //#endregion
532
- //#region \0@oxc-project+runtime@0.120.0/helpers/decorate.js
532
+ //#region \0@oxc-project+runtime@0.127.0/helpers/decorate.js
533
533
  function __decorate(decorators, target, key, desc) {
534
534
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
535
535
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -537,7 +537,7 @@ function __decorate(decorators, target, key, desc) {
537
537
  return c > 3 && r && Object.defineProperty(target, key, r), r;
538
538
  }
539
539
  //#endregion
540
- //#region \0@oxc-project+runtime@0.120.0/helpers/decorateParam.js
540
+ //#region \0@oxc-project+runtime@0.127.0/helpers/decorateParam.js
541
541
  function __decorateParam(paramIndex, decorator) {
542
542
  return function(target, key) {
543
543
  decorator(target, key, paramIndex);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/moost-db",
3
- "version": "0.1.71",
3
+ "version": "0.1.73",
4
4
  "description": "Generic database controller for Moost with Atscript.",
5
5
  "keywords": [
6
6
  "annotations",
@@ -58,7 +58,7 @@
58
58
  "@wooksjs/event-core": "^0.7.11",
59
59
  "@wooksjs/http-body": "^0.7.11",
60
60
  "moost": "^0.6.9",
61
- "@atscript/db": "^0.1.71"
61
+ "@atscript/db": "^0.1.73"
62
62
  },
63
63
  "scripts": {
64
64
  "postinstall": "asc -f dts",