@getcronit/pylon 0.0.86
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/auth/decorators/requireAuth.d.ts +2 -0
- package/dist/auth/index.d.ts +21 -0
- package/dist/context.d.ts +16 -0
- package/dist/define-pylon.d.ts +44 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3428 -0
- package/dist/index.js.map +43 -0
- package/dist/logger/index.d.ts +2 -0
- package/dist/logger/winston-sentry-transport.d.ts +11 -0
- package/package.json +31 -0
- package/tsconfig.pylon.json +26 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import TransportStream from 'winston-transport';
|
|
2
|
+
declare class WinstonSentryTransport extends TransportStream {
|
|
3
|
+
protected name: string;
|
|
4
|
+
protected tags: {
|
|
5
|
+
[s: string]: any;
|
|
6
|
+
};
|
|
7
|
+
protected levelsMap: any;
|
|
8
|
+
constructor(opts: any);
|
|
9
|
+
log(info: any, callback: any): ((a: null, b: boolean) => unknown) | undefined;
|
|
10
|
+
}
|
|
11
|
+
export default WinstonSentryTransport;
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@getcronit/pylon",
|
|
3
|
+
"version": "0.0.86",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "bun run ../../build.js && bun run build:declarations",
|
|
9
|
+
"build:declarations": "tsc --declaration --emitDeclarationOnly --outDir ./dist"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"tsconfig.pylon.json"
|
|
14
|
+
],
|
|
15
|
+
"license": "UNLICENSED",
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"hono": "^4.0.8",
|
|
18
|
+
"microbundle": "^0.15.1"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"hono": "^4.0.8"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@sentry/bun": "^7.106.0",
|
|
25
|
+
"graphql": "^16.6.0",
|
|
26
|
+
"jsonwebtoken": "^9.0.2",
|
|
27
|
+
"lodash": "^4.17.21",
|
|
28
|
+
"openid-client": "^5.6.4",
|
|
29
|
+
"winston": "^3.8.2"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// add Bun type definitions
|
|
4
|
+
"types": ["bun-types"],
|
|
5
|
+
|
|
6
|
+
// enable latest features
|
|
7
|
+
"lib": ["esnext"],
|
|
8
|
+
"module": "esnext",
|
|
9
|
+
"target": "esnext",
|
|
10
|
+
|
|
11
|
+
"moduleResolution": "node", // support `import` from `node_modules`
|
|
12
|
+
"noImplicitAny": false,
|
|
13
|
+
"noImplicitThis": false,
|
|
14
|
+
|
|
15
|
+
"jsx": "react-jsx", // support JSX
|
|
16
|
+
"allowJs": true, // allow importing `.js` from `.ts`
|
|
17
|
+
"esModuleInterop": true, // allow default imports for CommonJS modules
|
|
18
|
+
|
|
19
|
+
// best practices
|
|
20
|
+
"strict": true,
|
|
21
|
+
"forceConsistentCasingInFileNames": true,
|
|
22
|
+
"skipLibCheck": true,
|
|
23
|
+
"experimentalDecorators": true,
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|