@cedarjs/api 6.0.0-rc.189 → 6.0.0-rc.221

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/errors.d.ts CHANGED
@@ -1,5 +1,13 @@
1
- export declare class RedwoodError extends Error {
1
+ export declare class CedarError extends Error {
2
2
  extensions: Record<string, any> | undefined;
3
3
  constructor(message: string, extensions?: Record<string, any>);
4
4
  }
5
+ /**
6
+ * @deprecated Use `CedarError` instead.
7
+ * Preserved as a distinct class to maintain backward compatibility for code that checks
8
+ * `error.name === 'RedwoodError'` or `instanceof RedwoodError`.
9
+ */
10
+ export declare class RedwoodError extends CedarError {
11
+ constructor(message: string, extensions?: Record<string, any>);
12
+ }
5
13
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAa,SAAQ,KAAK;IACrC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAA;gBAC/B,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAQ9D"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAW,SAAQ,KAAK;IACnC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAA;gBAC/B,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAQ9D;AAED;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,UAAU;gBAC9B,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAI9D"}
package/dist/errors.js CHANGED
@@ -1,14 +1,21 @@
1
- class RedwoodError extends Error {
1
+ class CedarError extends Error {
2
2
  extensions;
3
3
  constructor(message, extensions) {
4
4
  super(message);
5
- this.name = "RedwoodError";
5
+ this.name = "CedarError";
6
6
  this.extensions = {
7
7
  ...extensions,
8
8
  code: extensions?.code || "REDWOODJS_ERROR"
9
9
  };
10
10
  }
11
11
  }
12
+ class RedwoodError extends CedarError {
13
+ constructor(message, extensions) {
14
+ super(message, extensions);
15
+ this.name = "RedwoodError";
16
+ }
17
+ }
12
18
  export {
19
+ CedarError,
13
20
  RedwoodError
14
21
  };
package/dist/index.js CHANGED
@@ -7,9 +7,9 @@ export * from "./transforms.js";
7
7
  export * from "./cors.js";
8
8
  export * from "./event.js";
9
9
  const prismaVersion = "7.8.0";
10
- const redwoodVersion = "6.0.0-rc.189";
11
- const cedarjsVersion = "6.0.0-rc.189";
12
- const cedarVersion = "6.0.0-rc.189";
10
+ const redwoodVersion = "6.0.0-rc.221";
11
+ const cedarjsVersion = "6.0.0-rc.221";
12
+ const cedarVersion = "6.0.0-rc.221";
13
13
  export {
14
14
  cedarVersion,
15
15
  cedarjsVersion,
@@ -90,24 +90,26 @@ export declare const defaultLoggerOptions: {
90
90
  redact: string[];
91
91
  };
92
92
  /**
93
- * RedwoodLoggerOptions defines custom logger options that extend those available in LoggerOptions
93
+ * CedarLoggerOptions defines custom logger options that extend those available in LoggerOptions
94
94
  * and can define a destination like a file or other supported pin log transport stream
95
95
  *
96
- * @typedef {Object} RedwoodLoggerOptions
96
+ * @typedef {Object} CedarLoggerOptions
97
97
  * @extends LoggerOptions
98
98
  * @property {options} LoggerOptions - options define how to log
99
99
  * @property {string | DestinationStream} destination - destination defines where to log
100
100
  * @property {boolean} showConfig - Display logger configuration on initialization
101
101
  */
102
- export interface RedwoodLoggerOptions {
102
+ export interface CedarLoggerOptions {
103
103
  options?: LoggerOptions;
104
104
  destination?: string | DestinationStream;
105
105
  showConfig?: boolean;
106
106
  }
107
+ /** @deprecated Use `CedarLoggerOptions` instead. */
108
+ export type RedwoodLoggerOptions = CedarLoggerOptions;
107
109
  /**
108
110
  * Creates the logger
109
111
  *
110
- * @param options {RedwoodLoggerOptions} - Override the default logger configuration
112
+ * @param options {CedarLoggerOptions} - Override the default logger configuration
111
113
  * @param destination {DestinationStream} - An optional destination stream
112
114
  * @param showConfig {Boolean} - Show the logger configuration. This is off by default.
113
115
  *
@@ -121,7 +123,7 @@ export interface RedwoodLoggerOptions {
121
123
  *
122
124
  * @return {Logger} - The configured logger
123
125
  */
124
- export declare const createLogger: ({ options, destination, showConfig, }: RedwoodLoggerOptions) => Logger;
126
+ export declare const createLogger: ({ options, destination, showConfig, }: CedarLoggerOptions) => Logger;
125
127
  /**
126
128
  * Determines the type and level of logging.
127
129
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/logger/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,MAAM,CAAA;AAGzB;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAA;AAC7B,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,UAAU,CAAA;AACrC,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,iBAAiB,CAAA;AACnD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,eAAe,CAAA;AAC/C,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,aAAa,CAAA;AAC3C,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;AAI1D,KAAK,YAAY,GAAG,GAAG,CAAA;AAEvB,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,QAAQ,CAAA;IACf,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAA;CACzB,CAAA;AAgBD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,SAAyC,CAAA;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,MAAM,SAAkC,CAAA;AAErD;;;;;GAKG;AACH,eAAO,M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EAIrE,CAAA;AAED;;;;;;;;;;;GAWG;AACH,UAAU,mBAAmB;IAC3B,EAAE,EAAE,YAAY,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,QAAQ,EAAE,CAAA;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,mBAAmB,GAAI,QAAQ,mBAAmB,KAAG,IA8CjE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/api",
3
- "version": "6.0.0-rc.189",
3
+ "version": "6.0.0-rc.221",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -84,7 +84,7 @@
84
84
  "title-case": "3.0.3"
85
85
  },
86
86
  "devDependencies": {
87
- "@cedarjs/framework-tools": "6.0.0-rc.189",
87
+ "@cedarjs/framework-tools": "6.0.0-rc.221",
88
88
  "@types/aws-lambda": "8.10.162",
89
89
  "@types/jsonwebtoken": "9.0.10",
90
90
  "@types/memjs": "1",