@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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # @pikku/azure-functions
2
2
 
3
+ ## 0.7.0
4
+
5
+ - Updating to match remaining packages
6
+
7
+
3
8
  ## 0.6.1
4
9
 
5
10
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikku/azure-functions",
3
- "version": "0.6.1",
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.6.7"
20
+ "@pikku/core": "^0.7.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "typescript": "^5.6.3"
package/src/index.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './pikku-az-functions-logger.js'
2
- export * from './pikku-az-timer-request.js'
@@ -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
- }
@@ -1,8 +0,0 @@
1
- import { InvocationContext } from '@azure/functions'
2
- import { PikkuRequest } from '@pikku/core'
3
-
4
- export class PikkuAZTimerRequest<In = any> extends PikkuRequest<In> {
5
- constructor(_context: InvocationContext, data: In) {
6
- super(data)
7
- }
8
- }
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
- }
@@ -1 +0,0 @@
1
- {"root":["./src/index.ts","./src/pikku-az-functions-logger.ts","./src/pikku-az-timer-request.ts"],"version":"5.7.3"}