object-set-all-values-to 6.0.14 → 6.0.16

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
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 6.0.16 (2024-03-30)
7
+
8
+ ### Bug Fixes
9
+
10
+ - tweak types ([5ea026a](https://github.com/codsen/codsen/commit/5ea026ae62cdb8fa0a86e578bfde368d653959c2))
11
+
6
12
  ## 6.0.0 (2022-12-01)
7
13
 
8
14
  ### BREAKING CHANGES
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @name object-set-all-values-to
3
3
  * @fileoverview Recursively walk the input and set all found values in plain objects to something
4
- * @version 6.0.14
4
+ * @version 6.0.16
5
5
  * @author Roy Revelt, Codsen Ltd
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/object-set-all-values-to/}
8
8
  */
9
9
 
10
- import d from"rfdc";import{isPlainObject as o}from"codsen-utils";var l="6.0.14";var i=d(),y=l;function p(c,r){let t,e=i(c);return arguments.length<2?t=!1:o(r)||Array.isArray(r)?t=i(r):t=r,Array.isArray(e)?e.forEach((s,n)=>{(o(e[n])||Array.isArray(e[n]))&&(e[n]=p(e[n],t))}):o(e)&&Object.keys(e).forEach(s=>{Array.isArray(e[s])||o(e[s])?e[s]=p(e[s],t):e[s]=t}),e}export{p as setAllValuesTo,y as version};
10
+ import d from"rfdc";import{isPlainObject as o}from"codsen-utils";var l="6.0.16";var i=d(),y=l;function p(c,r){let t,e=i(c);return arguments.length<2?t=!1:o(r)||Array.isArray(r)?t=i(r):t=r,Array.isArray(e)?e.forEach((s,n)=>{(o(e[n])||Array.isArray(e[n]))&&(e[n]=p(e[n],t))}):o(e)&&Object.keys(e).forEach(s=>{Array.isArray(e[s])||o(e[s])?e[s]=p(e[s],t):e[s]=t}),e}export{p as setAllValuesTo,y as version};
@@ -1,17 +1,17 @@
1
1
  /**
2
2
  * @name object-set-all-values-to
3
3
  * @fileoverview Recursively walk the input and set all found values in plain objects to something
4
- * @version 6.0.14
4
+ * @version 6.0.16
5
5
  * @author Roy Revelt, Codsen Ltd
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/object-set-all-values-to/}
8
8
  */
9
9
 
10
- "use strict";var objectSetAllValuesTo=(()=>{var O=Object.create;var d=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty;var $=(i,n)=>()=>(n||i((n={exports:{}}).exports,n),n.exports),R=(i,n)=>{for(var o in n)d(i,o,{get:n[o],enumerable:!0})},w=(i,n,o,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of B(n))!E.call(i,t)&&t!==o&&d(i,t,{get:()=>n[t],enumerable:!(a=C(n,t))||a.enumerable});return i};var v=(i,n,o)=>(o=i!=null?O(M(i)):{},w(n||!i||!i.__esModule?d(o,"default",{value:i,enumerable:!0}):o,i)),L=i=>w(d({},"__esModule",{value:!0}),i);var b=$((Q,g)=>{"use strict";g.exports=P;function y(i){return i instanceof Buffer?Buffer.from(i):new i.constructor(i.buffer.slice(),i.byteOffset,i.length)}function P(i){if(i=i||{},i.circles)return F(i);return i.proto?a:o;function n(t,l){for(var e=Object.keys(t),r=new Array(e.length),f=0;f<e.length;f++){var s=e[f],u=t[s];typeof u!="object"||u===null?r[s]=u:u instanceof Date?r[s]=new Date(u):ArrayBuffer.isView(u)?r[s]=y(u):r[s]=l(u)}return r}function o(t){if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t);if(Array.isArray(t))return n(t,o);if(t instanceof Map)return new Map(n(Array.from(t),o));if(t instanceof Set)return new Set(n(Array.from(t),o));var l={};for(var e in t)if(Object.hasOwnProperty.call(t,e)!==!1){var r=t[e];typeof r!="object"||r===null?l[e]=r:r instanceof Date?l[e]=new Date(r):r instanceof Map?l[e]=new Map(n(Array.from(r),o)):r instanceof Set?l[e]=new Set(n(Array.from(r),o)):ArrayBuffer.isView(r)?l[e]=y(r):l[e]=o(r)}return l}function a(t){if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t);if(Array.isArray(t))return n(t,a);if(t instanceof Map)return new Map(n(Array.from(t),a));if(t instanceof Set)return new Set(n(Array.from(t),a));var l={};for(var e in t){var r=t[e];typeof r!="object"||r===null?l[e]=r:r instanceof Date?l[e]=new Date(r):r instanceof Map?l[e]=new Map(n(Array.from(r),a)):r instanceof Set?l[e]=new Set(n(Array.from(r),a)):ArrayBuffer.isView(r)?l[e]=y(r):l[e]=a(r)}return l}}function F(i){var n=[],o=[];return i.proto?l:t;function a(e,r){for(var f=Object.keys(e),s=new Array(f.length),u=0;u<f.length;u++){var c=f[u],p=e[c];if(typeof p!="object"||p===null)s[c]=p;else if(p instanceof Date)s[c]=new Date(p);else if(ArrayBuffer.isView(p))s[c]=y(p);else{var h=n.indexOf(p);h!==-1?s[c]=o[h]:s[c]=r(p)}}return s}function t(e){if(typeof e!="object"||e===null)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return a(e,t);if(e instanceof Map)return new Map(a(Array.from(e),t));if(e instanceof Set)return new Set(a(Array.from(e),t));var r={};n.push(e),o.push(r);for(var f in e)if(Object.hasOwnProperty.call(e,f)!==!1){var s=e[f];if(typeof s!="object"||s===null)r[f]=s;else if(s instanceof Date)r[f]=new Date(s);else if(s instanceof Map)r[f]=new Map(a(Array.from(s),t));else if(s instanceof Set)r[f]=new Set(a(Array.from(s),t));else if(ArrayBuffer.isView(s))r[f]=y(s);else{var u=n.indexOf(s);u!==-1?r[f]=o[u]:r[f]=t(s)}}return n.pop(),o.pop(),r}function l(e){if(typeof e!="object"||e===null)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return a(e,l);if(e instanceof Map)return new Map(a(Array.from(e),l));if(e instanceof Set)return new Set(a(Array.from(e),l));var r={};n.push(e),o.push(r);for(var f in e){var s=e[f];if(typeof s!="object"||s===null)r[f]=s;else if(s instanceof Date)r[f]=new Date(s);else if(s instanceof Map)r[f]=new Map(a(Array.from(s),l));else if(s instanceof Set)r[f]=new Set(a(Array.from(s),l));else if(ArrayBuffer.isView(s))r[f]=y(s);else{var u=n.indexOf(s);u!==-1?r[f]=o[u]:r[f]=l(s)}}return n.pop(),o.pop(),r}}});var V={};R(V,{setAllValuesTo:()=>A,version:()=>T});var x=v(b(),1);var j=v(b(),1);var U=(0,j.default)();function m(i){if(i==null||typeof i!="object")return!1;let n=Object.getPrototypeOf(i);return n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null?!1:!(Symbol.iterator in i)&&!(Symbol.toStringTag in i)}var S="6.0.14";var D=(0,x.default)(),T=S;function A(i,n){let o,a=D(i);return arguments.length<2?o=!1:m(n)||Array.isArray(n)?o=D(n):o=n,Array.isArray(a)?a.forEach((t,l)=>{(m(a[l])||Array.isArray(a[l]))&&(a[l]=A(a[l],o))}):m(a)&&Object.keys(a).forEach(t=>{Array.isArray(a[t])||m(a[t])?a[t]=A(a[t],o):a[t]=o}),a}return L(V);})();
10
+ "use strict";var objectSetAllValuesTo=(()=>{var O=Object.create;var d=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty;var $=(i,n)=>()=>(n||i((n={exports:{}}).exports,n),n.exports),R=(i,n)=>{for(var o in n)d(i,o,{get:n[o],enumerable:!0})},w=(i,n,o,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of B(n))!E.call(i,t)&&t!==o&&d(i,t,{get:()=>n[t],enumerable:!(a=C(n,t))||a.enumerable});return i};var v=(i,n,o)=>(o=i!=null?O(M(i)):{},w(n||!i||!i.__esModule?d(o,"default",{value:i,enumerable:!0}):o,i)),L=i=>w(d({},"__esModule",{value:!0}),i);var b=$((Q,g)=>{"use strict";g.exports=P;function y(i){return i instanceof Buffer?Buffer.from(i):new i.constructor(i.buffer.slice(),i.byteOffset,i.length)}function P(i){if(i=i||{},i.circles)return F(i);return i.proto?a:o;function n(t,l){for(var e=Object.keys(t),r=new Array(e.length),f=0;f<e.length;f++){var s=e[f],u=t[s];typeof u!="object"||u===null?r[s]=u:u instanceof Date?r[s]=new Date(u):ArrayBuffer.isView(u)?r[s]=y(u):r[s]=l(u)}return r}function o(t){if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t);if(Array.isArray(t))return n(t,o);if(t instanceof Map)return new Map(n(Array.from(t),o));if(t instanceof Set)return new Set(n(Array.from(t),o));var l={};for(var e in t)if(Object.hasOwnProperty.call(t,e)!==!1){var r=t[e];typeof r!="object"||r===null?l[e]=r:r instanceof Date?l[e]=new Date(r):r instanceof Map?l[e]=new Map(n(Array.from(r),o)):r instanceof Set?l[e]=new Set(n(Array.from(r),o)):ArrayBuffer.isView(r)?l[e]=y(r):l[e]=o(r)}return l}function a(t){if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t);if(Array.isArray(t))return n(t,a);if(t instanceof Map)return new Map(n(Array.from(t),a));if(t instanceof Set)return new Set(n(Array.from(t),a));var l={};for(var e in t){var r=t[e];typeof r!="object"||r===null?l[e]=r:r instanceof Date?l[e]=new Date(r):r instanceof Map?l[e]=new Map(n(Array.from(r),a)):r instanceof Set?l[e]=new Set(n(Array.from(r),a)):ArrayBuffer.isView(r)?l[e]=y(r):l[e]=a(r)}return l}}function F(i){var n=[],o=[];return i.proto?l:t;function a(e,r){for(var f=Object.keys(e),s=new Array(f.length),u=0;u<f.length;u++){var c=f[u],p=e[c];if(typeof p!="object"||p===null)s[c]=p;else if(p instanceof Date)s[c]=new Date(p);else if(ArrayBuffer.isView(p))s[c]=y(p);else{var h=n.indexOf(p);h!==-1?s[c]=o[h]:s[c]=r(p)}}return s}function t(e){if(typeof e!="object"||e===null)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return a(e,t);if(e instanceof Map)return new Map(a(Array.from(e),t));if(e instanceof Set)return new Set(a(Array.from(e),t));var r={};n.push(e),o.push(r);for(var f in e)if(Object.hasOwnProperty.call(e,f)!==!1){var s=e[f];if(typeof s!="object"||s===null)r[f]=s;else if(s instanceof Date)r[f]=new Date(s);else if(s instanceof Map)r[f]=new Map(a(Array.from(s),t));else if(s instanceof Set)r[f]=new Set(a(Array.from(s),t));else if(ArrayBuffer.isView(s))r[f]=y(s);else{var u=n.indexOf(s);u!==-1?r[f]=o[u]:r[f]=t(s)}}return n.pop(),o.pop(),r}function l(e){if(typeof e!="object"||e===null)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return a(e,l);if(e instanceof Map)return new Map(a(Array.from(e),l));if(e instanceof Set)return new Set(a(Array.from(e),l));var r={};n.push(e),o.push(r);for(var f in e){var s=e[f];if(typeof s!="object"||s===null)r[f]=s;else if(s instanceof Date)r[f]=new Date(s);else if(s instanceof Map)r[f]=new Map(a(Array.from(s),l));else if(s instanceof Set)r[f]=new Set(a(Array.from(s),l));else if(ArrayBuffer.isView(s))r[f]=y(s);else{var u=n.indexOf(s);u!==-1?r[f]=o[u]:r[f]=l(s)}}return n.pop(),o.pop(),r}}});var V={};R(V,{setAllValuesTo:()=>A,version:()=>T});var x=v(b(),1);var j=v(b(),1);var U=(0,j.default)();function m(i){if(i==null||typeof i!="object")return!1;let n=Object.getPrototypeOf(i);return n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null?!1:!(Symbol.iterator in i)&&!(Symbol.toStringTag in i)}var S="6.0.16";var D=(0,x.default)(),T=S;function A(i,n){let o,a=D(i);return arguments.length<2?o=!1:m(n)||Array.isArray(n)?o=D(n):o=n,Array.isArray(a)?a.forEach((t,l)=>{(m(a[l])||Array.isArray(a[l]))&&(a[l]=A(a[l],o))}):m(a)&&Object.keys(a).forEach(t=>{Array.isArray(a[t])||m(a[t])?a[t]=A(a[t],o):a[t]=o}),a}return L(V);})();
11
11
  /**
12
12
  * @name codsen-utils
13
13
  * @fileoverview Various utility functions
14
- * @version 1.6.3
14
+ * @version 1.6.4
15
15
  * @author Roy Revelt, Codsen Ltd
16
16
  * @license MIT
17
17
  * {@link https://codsen.com/os/codsen-utils/}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "object-set-all-values-to",
3
- "version": "6.0.14",
3
+ "version": "6.0.16",
4
4
  "description": "Recursively walk the input and set all found values in plain objects to something",
5
5
  "keywords": [
6
6
  "all",
@@ -71,7 +71,7 @@
71
71
  }
72
72
  },
73
73
  "dependencies": {
74
- "codsen-utils": "^1.6.3",
75
- "rfdc": "^1.3.0"
74
+ "codsen-utils": "^1.6.4",
75
+ "rfdc": "^1.3.1"
76
76
  }
77
77
  }