@cedarjs/api 6.0.0-rc.189 → 6.0.0-rc.241
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 +9 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +9 -2
- package/dist/index.js +3 -3
- package/dist/logger/index.d.ts +7 -5
- package/dist/logger/index.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/errors.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
export declare class
|
|
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
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,
|
|
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
|
|
1
|
+
class CedarError extends Error {
|
|
2
2
|
extensions;
|
|
3
3
|
constructor(message, extensions) {
|
|
4
4
|
super(message);
|
|
5
|
-
this.name = "
|
|
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.
|
|
11
|
-
const cedarjsVersion = "6.0.0-rc.
|
|
12
|
-
const cedarVersion = "6.0.0-rc.
|
|
10
|
+
const redwoodVersion = "6.0.0-rc.241";
|
|
11
|
+
const cedarjsVersion = "6.0.0-rc.241";
|
|
12
|
+
const cedarVersion = "6.0.0-rc.241";
|
|
13
13
|
export {
|
|
14
14
|
cedarVersion,
|
|
15
15
|
cedarjsVersion,
|
package/dist/logger/index.d.ts
CHANGED
|
@@ -90,24 +90,26 @@ export declare const defaultLoggerOptions: {
|
|
|
90
90
|
redact: string[];
|
|
91
91
|
};
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
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}
|
|
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
|
|
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 {
|
|
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, }:
|
|
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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rB,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.
|
|
3
|
+
"version": "6.0.0-rc.241",
|
|
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.
|
|
87
|
+
"@cedarjs/framework-tools": "6.0.0-rc.241",
|
|
88
88
|
"@types/aws-lambda": "8.10.162",
|
|
89
89
|
"@types/jsonwebtoken": "9.0.10",
|
|
90
90
|
"@types/memjs": "1",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@types/split2": "4.2.3",
|
|
93
93
|
"concurrently": "9.2.4",
|
|
94
94
|
"memjs": "1.3.2",
|
|
95
|
-
"publint": "0.3.
|
|
95
|
+
"publint": "0.3.23",
|
|
96
96
|
"redis": "5.12.1",
|
|
97
97
|
"split2": "4.2.0",
|
|
98
98
|
"ts-toolbelt": "9.6.0",
|