@xylabs/object
Advanced tools
Comparing version 3.1.6 to 3.1.7
@@ -15,2 +15,3 @@ export * from './AnyObject'; | ||
export * from './PartialRecord'; | ||
export * from './removeFields'; | ||
export * from './StringKeyObject'; | ||
@@ -17,0 +18,0 @@ export * from './toJson'; |
@@ -165,2 +165,11 @@ // src/AsTypeFactory.ts | ||
// src/removeFields.ts | ||
var removeFields = (obj, fields) => { | ||
const clone = { ...obj }; | ||
for (const field of fields) { | ||
delete clone[field]; | ||
} | ||
return clone; | ||
}; | ||
// src/toJson.ts | ||
@@ -228,2 +237,3 @@ var toJsonArray = (value, cycleList, maxDepth = 3) => { | ||
isValidJsonFieldPair, | ||
removeFields, | ||
toJson, | ||
@@ -230,0 +240,0 @@ toJsonString |
@@ -15,2 +15,3 @@ export * from './AnyObject'; | ||
export * from './PartialRecord'; | ||
export * from './removeFields'; | ||
export * from './StringKeyObject'; | ||
@@ -17,0 +18,0 @@ export * from './toJson'; |
@@ -167,2 +167,11 @@ // src/AsTypeFactory.ts | ||
// src/removeFields.ts | ||
var removeFields = (obj, fields) => { | ||
const clone = { ...obj }; | ||
for (const field of fields) { | ||
delete clone[field]; | ||
} | ||
return clone; | ||
}; | ||
// src/toJson.ts | ||
@@ -230,2 +239,3 @@ var toJsonArray = (value, cycleList, maxDepth = 3) => { | ||
isValidJsonFieldPair, | ||
removeFields, | ||
toJson, | ||
@@ -232,0 +242,0 @@ toJsonString |
@@ -14,5 +14,5 @@ { | ||
"dependencies": { | ||
"@xylabs/assert": "^3.1.6", | ||
"@xylabs/logger": "^3.1.6", | ||
"@xylabs/promise": "^3.1.6" | ||
"@xylabs/assert": "^3.1.7", | ||
"@xylabs/logger": "^3.1.7", | ||
"@xylabs/promise": "^3.1.7" | ||
}, | ||
@@ -62,4 +62,4 @@ "devDependencies": { | ||
"sideEffects": false, | ||
"version": "3.1.6", | ||
"version": "3.1.7", | ||
"type": "module" | ||
} |
@@ -15,2 +15,3 @@ export * from './AnyObject' | ||
export * from './PartialRecord' | ||
export * from './removeFields' | ||
export * from './StringKeyObject' | ||
@@ -17,0 +18,0 @@ export * from './toJson' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
232150
272
1545
Updated@xylabs/assert@^3.1.7
Updated@xylabs/logger@^3.1.7
Updated@xylabs/promise@^3.1.7