@pikku/azure-functions 0.6.1 → 0.7.0
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/CHANGELOG.md +5 -0
- package/package.json +3 -3
- package/src/index.ts +0 -2
- package/src/pikku-az-functions-logger.ts +0 -32
- package/src/pikku-az-timer-request.ts +0 -8
- package/tsconfig.json +0 -17
- package/tsconfig.tsbuildinfo +0 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/azure-functions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "yasser.fadl@gmail.com",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"tsc": "tsc",
|
|
11
|
+
"ncu": "npx npm-check-updates",
|
|
11
12
|
"build:esm": "tsc -b",
|
|
12
13
|
"build": "yarn build:esm",
|
|
13
14
|
"release": "npm run build && npm test",
|
|
14
|
-
"ncu": "ncu",
|
|
15
15
|
"test": "bash run-tests.sh",
|
|
16
16
|
"test:watch": "bash run-tests.sh --watch",
|
|
17
17
|
"test:coverage": "bash run-tests.sh --coverage"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@pikku/core": "^0.
|
|
20
|
+
"@pikku/core": "^0.7.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"typescript": "^5.6.3"
|
package/src/index.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { InvocationContext } from '@azure/functions'
|
|
2
|
-
import { Logger, LogLevel } from '@pikku/core/services'
|
|
3
|
-
|
|
4
|
-
export class AzInvocationLogger implements Logger {
|
|
5
|
-
// private logLevel: LogLevel = LogLevel.info
|
|
6
|
-
|
|
7
|
-
constructor(private context: InvocationContext) {}
|
|
8
|
-
|
|
9
|
-
public info(messageOrObj: string | Record<string, any>): void {
|
|
10
|
-
this.context.info(messageOrObj)
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
public warn(messageOrObj: string | Record<string, any>): void {
|
|
14
|
-
this.context.warn(messageOrObj)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
public error(messageOrObj: string | Record<string, any> | Error): void {
|
|
18
|
-
this.context.error(messageOrObj)
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
public debug(message: string): void {
|
|
22
|
-
this.context.debug(message)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
public trace(message: string): void {
|
|
26
|
-
this.context.trace(message)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
public setLevel(level: LogLevel): void {
|
|
30
|
-
// this.logLevel = level
|
|
31
|
-
}
|
|
32
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"rootDir": "./src",
|
|
5
|
-
"module": "Node16",
|
|
6
|
-
"outDir": "dist",
|
|
7
|
-
"target": "esnext",
|
|
8
|
-
"declaration": true
|
|
9
|
-
},
|
|
10
|
-
"include": ["bin/**/*.ts", "src/**/*.ts"],
|
|
11
|
-
"exclude": ["**/*.test.ts", "node_modules", "bin/dist"],
|
|
12
|
-
"references": [
|
|
13
|
-
{
|
|
14
|
-
"path": "../../core/tsconfig.json"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
package/tsconfig.tsbuildinfo
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"root":["./src/index.ts","./src/pikku-az-functions-logger.ts","./src/pikku-az-timer-request.ts"],"version":"5.7.3"}
|