@gr4vy/sdk 1.1.49 → 1.1.51
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/README.md +2 -8
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
package/README.md
CHANGED
|
@@ -75,10 +75,7 @@ bun add @gr4vy/sdk
|
|
|
75
75
|
### Yarn
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
|
-
yarn add @gr4vy/sdk
|
|
79
|
-
|
|
80
|
-
# Note that Yarn does not install peer dependencies automatically. You will need
|
|
81
|
-
# to install zod as shown above.
|
|
78
|
+
yarn add @gr4vy/sdk
|
|
82
79
|
```
|
|
83
80
|
<!-- End SDK Installation [installation] -->
|
|
84
81
|
|
|
@@ -730,10 +727,7 @@ bun add @gr4vy/sdk
|
|
|
730
727
|
### Yarn
|
|
731
728
|
|
|
732
729
|
```bash
|
|
733
|
-
yarn add @gr4vy/sdk
|
|
734
|
-
|
|
735
|
-
# Note that Yarn does not install peer dependencies automatically. You will need
|
|
736
|
-
# to install zod as shown above.
|
|
730
|
+
yarn add @gr4vy/sdk
|
|
737
731
|
```
|
|
738
732
|
<!-- End SDK Installation [installation] -->
|
|
739
733
|
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -44,8 +44,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
44
44
|
export declare const SDK_METADATA: {
|
|
45
45
|
readonly language: "typescript";
|
|
46
46
|
readonly openapiDocVersion: "1.0.0";
|
|
47
|
-
readonly sdkVersion: "1.1.
|
|
48
|
-
readonly genVersion: "2.
|
|
49
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.1.
|
|
47
|
+
readonly sdkVersion: "1.1.51";
|
|
48
|
+
readonly genVersion: "2.716.7";
|
|
49
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.1.51 2.716.7 1.0.0 @gr4vy/sdk";
|
|
50
50
|
};
|
|
51
51
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -37,8 +37,8 @@ function serverURLFromOptions(options) {
|
|
|
37
37
|
exports.SDK_METADATA = {
|
|
38
38
|
language: "typescript",
|
|
39
39
|
openapiDocVersion: "1.0.0",
|
|
40
|
-
sdkVersion: "1.1.
|
|
41
|
-
genVersion: "2.
|
|
42
|
-
userAgent: "speakeasy-sdk/typescript 1.1.
|
|
40
|
+
sdkVersion: "1.1.51",
|
|
41
|
+
genVersion: "2.716.7",
|
|
42
|
+
userAgent: "speakeasy-sdk/typescript 1.1.51 2.716.7 1.0.0 @gr4vy/sdk",
|
|
43
43
|
};
|
|
44
44
|
//# sourceMappingURL=config.js.map
|
package/lib/url.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.pathToFunc = pathToFunc;
|
|
7
7
|
const hasOwn = Object.prototype.hasOwnProperty;
|
|
8
8
|
function pathToFunc(pathPattern, options) {
|
|
9
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
9
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
10
10
|
return function buildURLPath(params = {}) {
|
|
11
11
|
return pathPattern.replace(paramRE, function (_, placeholder) {
|
|
12
12
|
if (!hasOwn.call(params, placeholder)) {
|
package/lib/url.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../src/lib/url.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAMH,gCAwBC;AA5BD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AAI/C,SAAgB,UAAU,CACxB,WAAmB,EACnB,OAA+C;IAE/C,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../src/lib/url.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAMH,gCAwBC;AA5BD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AAI/C,SAAgB,UAAU,CACxB,WAAmB,EACnB,OAA+C;IAE/C,MAAM,OAAO,GAAG,oCAAoC,CAAC;IAErD,OAAO,SAAS,YAAY,CAAC,SAAkC,EAAE;QAC/D,OAAO,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,WAAW;YAC1D,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,CAAC;gBACtC,MAAM,IAAI,KAAK,CAAC,cAAc,WAAW,eAAe,CAAC,CAAC;YAC5D,CAAC;YAED,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;YAClC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC3D,MAAM,IAAI,KAAK,CACb,cAAc,WAAW,8BAA8B,CACxD,CAAC;YACJ,CAAC;YAED,OAAO,OAAO,EAAE,YAAY,KAAK,SAAS;gBACxC,CAAC,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE,CAAC;gBAChC,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC;QACjB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -77,7 +77,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
77
77
|
export const SDK_METADATA = {
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "1.0.0",
|
|
80
|
-
sdkVersion: "1.1.
|
|
81
|
-
genVersion: "2.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 1.1.
|
|
80
|
+
sdkVersion: "1.1.51",
|
|
81
|
+
genVersion: "2.716.7",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 1.1.51 2.716.7 1.0.0 @gr4vy/sdk",
|
|
83
83
|
} as const;
|
package/src/lib/url.ts
CHANGED
|
@@ -10,7 +10,7 @@ export function pathToFunc(
|
|
|
10
10
|
pathPattern: string,
|
|
11
11
|
options?: { charEncoding?: "percent" | "none" },
|
|
12
12
|
): (params?: Params) => string {
|
|
13
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
13
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
16
|
return pathPattern.replace(paramRE, function (_, placeholder) {
|