@rebilly/instruments 16.34.3 → 16.35.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 +1,6 @@
1
- ## [16.34.3](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.34.2...instruments/core-v16.34.3) (2025-12-08)
1
+ ## [16.35.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.34.4...instruments/core-v16.35.0) (2025-12-08)
2
+
3
+
4
+ ### Features
5
+
6
+ * **framepay:** Allow setting the payment card type to make single-CVV element validation work correctly ([#16806](https://github.com/Rebilly/rebilly/issues/16806)) ([04090b9](https://github.com/Rebilly/rebilly/commit/04090b9a19e5e4aeabaee821f02d0b382311d1b3))
package/dist/index.js CHANGED
@@ -2393,8 +2393,10 @@ function merge() {
2393
2393
  result[targetKey] = merge({}, val);
2394
2394
  } else if (isArray(val)) {
2395
2395
  result[targetKey] = val.slice();
2396
- } else if (!skipUndefined || !isUndefined(val)) {
2397
- result[targetKey] = val;
2396
+ } else {
2397
+ if (!skipUndefined || !isUndefined(val)) {
2398
+ result[targetKey] = val;
2399
+ }
2398
2400
  }
2399
2401
  };
2400
2402
  for (let i = 0, l = arguments.length; i < l; i++) {
@@ -3978,7 +3980,8 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
3978
3980
  };
3979
3981
  const DEFAULT_CHUNK_SIZE = 64 * 1024;
3980
3982
  const { isFunction } = utils$1;
3981
- const globalFetchAPI = (({ Request, Response }) => ({
3983
+ const globalFetchAPI = (({ fetch, Request, Response }) => ({
3984
+ fetch,
3982
3985
  Request,
3983
3986
  Response
3984
3987
  }))(utils$1.global);
@@ -3994,11 +3997,8 @@ const test = (fn, ...args) => {
3994
3997
  }
3995
3998
  };
3996
3999
  const factory = (env) => {
3997
- env = utils$1.merge.call({
3998
- skipUndefined: true
3999
- }, globalFetchAPI, env);
4000
- const { fetch: envFetch, Request, Response } = env;
4001
- const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
4000
+ const { fetch, Request, Response } = Object.assign({}, globalFetchAPI, env);
4001
+ const isFetchSupported = isFunction(fetch);
4002
4002
  const isRequestSupported = isFunction(Request);
4003
4003
  const isResponseSupported = isFunction(Response);
4004
4004
  if (!isFetchSupported) {
@@ -4076,7 +4076,6 @@ const factory = (env) => {
4076
4076
  withCredentials = "same-origin",
4077
4077
  fetchOptions
4078
4078
  } = resolveConfig(config);
4079
- let _fetch = envFetch || fetch;
4080
4079
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
4081
4080
  let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
4082
4081
  let request = null;
@@ -4117,7 +4116,7 @@ const factory = (env) => {
4117
4116
  credentials: isCredentialsSupported ? withCredentials : void 0
4118
4117
  };
4119
4118
  request = isRequestSupported && new Request(url, resolvedOptions);
4120
- let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
4119
+ let response = await (isRequestSupported ? fetch(request, fetchOptions) : fetch(url, resolvedOptions));
4121
4120
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
4122
4121
  if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
4123
4122
  const options = {};
@@ -4166,12 +4165,14 @@ const factory = (env) => {
4166
4165
  };
4167
4166
  const seedCache = /* @__PURE__ */ new Map();
4168
4167
  const getFetch = (config) => {
4169
- let env = config ? config.env : {};
4170
- const { fetch: fetch2, Request, Response } = env;
4168
+ let env = utils$1.merge.call({
4169
+ skipUndefined: true
4170
+ }, globalFetchAPI, config ? config.env : null);
4171
+ const { fetch, Request, Response } = env;
4171
4172
  const seeds = [
4172
4173
  Request,
4173
4174
  Response,
4174
- fetch2
4175
+ fetch
4175
4176
  ];
4176
4177
  let len = seeds.length, i = len, seed, target, map = seedCache;
4177
4178
  while (i--) {
@@ -4280,7 +4281,7 @@ function dispatchRequest(config) {
4280
4281
  return Promise.reject(reason);
4281
4282
  });
4282
4283
  }
4283
- const VERSION$1 = "1.12.2";
4284
+ const VERSION$1 = "1.12.0";
4284
4285
  const validators$1 = {};
4285
4286
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
4286
4287
  validators$1[type] = function validator2(thing) {
@@ -4459,6 +4460,7 @@ let Axios$1 = class Axios {
4459
4460
  }
4460
4461
  len = requestInterceptorChain.length;
4461
4462
  let newConfig = config;
4463
+ i = 0;
4462
4464
  while (i < len) {
4463
4465
  const onFulfilled = requestInterceptorChain[i++];
4464
4466
  const onRejected = requestInterceptorChain[i++];
@@ -5183,7 +5185,7 @@ function C$1({ options: t2 }) {
5183
5185
  }
5184
5186
  function o2() {
5185
5187
  const i = {
5186
- "REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@ccb2953`
5188
+ "REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((g) => g).join("/")}@04090b9`
5187
5189
  };
5188
5190
  return t2.apiKey && (i["REB-APIKEY"] = t2.apiKey), i;
5189
5191
  }