@mergeapi/merge-node-client 3.0.0 → 3.0.1
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/BaseClient.js +2 -2
- package/core/schemas/builders/enum/enum.js +1 -1
- package/package.json +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@mergeapi/merge-node-client",
|
|
46
|
-
"X-Fern-SDK-Version": "3.0.
|
|
47
|
-
"User-Agent": "@mergeapi/merge-node-client/3.0.
|
|
46
|
+
"X-Fern-SDK-Version": "3.0.1",
|
|
47
|
+
"User-Agent": "@mergeapi/merge-node-client/3.0.1",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"X-Account-Token": options === null || options === void 0 ? void 0 : options.accountToken,
|
|
@@ -6,7 +6,7 @@ const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaC
|
|
|
6
6
|
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
7
7
|
function enum_(values) {
|
|
8
8
|
const validValues = new Set(values);
|
|
9
|
-
const schemaCreator = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.ENUM, (value, { allowUnrecognizedEnumValues, breadcrumbsPrefix = [] } = {}) => {
|
|
9
|
+
const schemaCreator = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.ENUM, (value, { allowUnrecognizedEnumValues = true, breadcrumbsPrefix = [] } = {}) => {
|
|
10
10
|
if (typeof value !== "string") {
|
|
11
11
|
return {
|
|
12
12
|
ok: false,
|
package/package.json
CHANGED
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.0.
|
|
1
|
+
export declare const SDK_VERSION = "3.0.1";
|
package/version.js
CHANGED