Skip to content

Commit

Permalink
Merge pull request #619 from andreaTP/bump-uri-template
Browse files Browse the repository at this point in the history
Bump uri template
  • Loading branch information
baywet authored Jun 12, 2023
2 parents 28f6cc1 + e6a8317 commit fd8bfe9
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/abstractions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@opentelemetry/api": "^1.2.0",
"tinyduration": "^3.2.2",
"tslib": "^2.3.1",
"uri-template-lite": "^22.1.0",
"uri-template-lite": "^23.4.0",
"uuid": "^9.0.0"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/abstractions/src/requestInformation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { trace } from "@opentelemetry/api";
import * as urlTpl from "uri-template-lite";
import * as Template from "uri-template-lite";

import { DateOnly } from "./dateOnly";
import { Duration } from "./duration";
Expand Down Expand Up @@ -39,7 +39,7 @@ export class RequestInformation {
} else if (!this.urlTemplate) {
throw new Error("urlTemplate cannot be undefined");
} else {
const template = new urlTpl.URI.Template(this.urlTemplate);
const template = new (Template as any)(this.urlTemplate);
const data = {} as { [key: string]: unknown };
for (const key in this.queryParameters) {
if (this.queryParameters[key]) {
Expand Down
3 changes: 1 addition & 2 deletions packages/abstractions/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"composite": true,

"composite": true
}
}
2 changes: 1 addition & 1 deletion packages/abstractions/tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"outDir": "./dist/cjs"
},
"exclude": ["node_modules", "dist"],
"include": ["./src/**/*.ts", "./test"]
"include": ["./src/**/*.ts", "./test", "./types"]
}
2 changes: 1 addition & 1 deletion packages/abstractions/tsconfig.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"outDir": "dist/es/"
},
"exclude": ["node_modules", "dist"],
"include": ["./src/**/*.ts", "./test/**/*.ts"]
"include": ["./src/**/*.ts", "./test/**/*.ts", "./types"]
}
5 changes: 5 additions & 0 deletions packages/abstractions/types/uri-template-lite/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module 'uri-template-lite' {
class Template {
constructor(template: string);
}
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7393,10 +7393,10 @@ uri-js@^4.2.2:
dependencies:
punycode "^2.1.0"

uri-template-lite@^22.1.0:
version "22.9.0"
resolved "https://registry.yarnpkg.com/uri-template-lite/-/uri-template-lite-22.9.0.tgz#98a1d0a6941cc7898aeca802315a6c5b24d31809"
integrity sha512-cmGZaykSWEQ5UXKaGKnUS8zFvfp8j1Jvn7dlq3P7tGd5XeybXcfo0xnVBRWiNEp80nO1GYgCLwoaRJ8WMmmk3Q==
uri-template-lite@^23.4.0:
version "23.4.0"
resolved "https://registry.yarnpkg.com/uri-template-lite/-/uri-template-lite-23.4.0.tgz#989158b76dba91dafbb2d558153f5359d0b04f48"
integrity sha512-JsAjquFMpSyZRWAUQguhHIRuh4jb/xDhwQyb1/7C42YLJgkc5WoBF3UkRRM1QtL6Vr9xBa9fB7q3xPzXRwvuUA==

url@^0.11.0:
version "0.11.0"
Expand Down

0 comments on commit fd8bfe9

Please sign in to comment.