@getcronit/pylon 1.2.0-beta.2 → 2.0.0-beta.1
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/app/envelop/use-sentry.d.ts +70 -0
- package/dist/app/handler/graphql-handler.d.ts +9 -0
- package/dist/app/handler/graphql-viewer-handler.d.ts +2 -0
- package/dist/app/index.d.ts +3 -0
- package/dist/context.d.ts +2 -0
- package/dist/define-pylon.d.ts +9 -33
- package/dist/index.d.ts +3 -2
- package/dist/index.js +285 -3030
- package/dist/index.js.map +11 -32
- package/package.json +12 -3
- package/tsconfig.pylon.json +2 -4
- package/dist/logger/index.d.ts +0 -10
- package/dist/logger/winston-sentry-transport.d.ts +0 -23
package/package.json
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getcronit/pylon",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "bun
|
|
8
|
+
"build": "rimraf ./dist && bun build ./src/index.ts --target=bun --outdir=./dist --sourcemap=external --packages external && bun run build:declarations",
|
|
9
9
|
"build:declarations": "tsc --declaration --emitDeclarationOnly --outDir ./dist"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"dist",
|
|
13
13
|
"tsconfig.pylon.json"
|
|
14
14
|
],
|
|
15
|
-
"
|
|
15
|
+
"author": "Nico Schett <nico.schett@cronit.io>",
|
|
16
|
+
"license": "Apache-2.0",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/getcronit/pylon.git",
|
|
20
|
+
"directory": "packages/pylon"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://pylon.cronit.io",
|
|
16
23
|
"devDependencies": {
|
|
17
24
|
"hono": "^4.0.8"
|
|
18
25
|
},
|
|
@@ -21,7 +28,9 @@
|
|
|
21
28
|
"@sentry/bun": "^8.17.0"
|
|
22
29
|
},
|
|
23
30
|
"dependencies": {
|
|
31
|
+
"@hono/sentry": "^1.2.0",
|
|
24
32
|
"graphql": "^16.9.0",
|
|
33
|
+
"graphql-yoga": "^5.6.2",
|
|
25
34
|
"jsonwebtoken": "^9.0.2",
|
|
26
35
|
"openid-client": "^5.6.4",
|
|
27
36
|
"winston": "^3.8.2"
|
package/tsconfig.pylon.json
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
// add Bun type definitions
|
|
4
|
-
"types": ["bun-types"],
|
|
5
|
-
|
|
2
|
+
"compilerOptions": {
|
|
6
3
|
// enable latest features
|
|
7
4
|
"lib": ["esnext"],
|
|
8
5
|
"module": "esnext",
|
|
@@ -21,6 +18,7 @@
|
|
|
21
18
|
"forceConsistentCasingInFileNames": true,
|
|
22
19
|
"skipLibCheck": true,
|
|
23
20
|
"experimentalDecorators": true,
|
|
21
|
+
|
|
24
22
|
}
|
|
25
23
|
}
|
|
26
24
|
|
package/dist/logger/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import winston from 'winston';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Use `getLogger` instead
|
|
4
|
-
*
|
|
5
|
-
* import {getLogger} from '@getcronit/pylon'
|
|
6
|
-
*
|
|
7
|
-
* const logger = getLogger(__filename)
|
|
8
|
-
*/
|
|
9
|
-
export declare const logger: winston.Logger;
|
|
10
|
-
export declare const getLogger: (moduleName?: string) => winston.Logger;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as Sentry from '@sentry/bun';
|
|
2
|
-
import TransportStream from 'winston-transport';
|
|
3
|
-
export interface SentryTransportOptions extends TransportStream.TransportStreamOptions {
|
|
4
|
-
sentry?: Sentry.BunOptions;
|
|
5
|
-
levelsMap?: SeverityOptions;
|
|
6
|
-
skipSentryInit?: boolean;
|
|
7
|
-
}
|
|
8
|
-
interface SeverityOptions {
|
|
9
|
-
[key: string]: Sentry.SeverityLevel;
|
|
10
|
-
}
|
|
11
|
-
export default class SentryTransport extends TransportStream {
|
|
12
|
-
silent: boolean;
|
|
13
|
-
private levelsMap;
|
|
14
|
-
constructor(opts?: SentryTransportOptions);
|
|
15
|
-
log(info: any, callback: () => void): void;
|
|
16
|
-
end(...args: any[]): this;
|
|
17
|
-
get sentry(): typeof Sentry;
|
|
18
|
-
private setLevelsMap;
|
|
19
|
-
private static withDefaults;
|
|
20
|
-
private static isObject;
|
|
21
|
-
private static shouldLogException;
|
|
22
|
-
}
|
|
23
|
-
export {};
|