@augment-vir/common
Advanced tools
Comparing version 30.0.3 to 30.0.4
@@ -1,5 +0,5 @@ | ||
import type { JsonCompatibleArray, JsonCompatibleObject, JsonCompatibleValue } from './json-compatible.js'; | ||
import { JsonCompatiblePrimitive } from './json-compatible.js'; | ||
import type { JsonCompatibleArray, JsonCompatibleObject, JsonCompatibleValue } from '@augment-vir/core'; | ||
import { JsonCompatiblePrimitive } from '@augment-vir/core'; | ||
export declare function appendJson(entry: JsonCompatibleArray | JsonCompatiblePrimitive, ...entries: ReadonlyArray<JsonCompatibleValue | undefined>): JsonCompatibleArray; | ||
export declare function appendJson(entry: JsonCompatibleObject, ...entries: ReadonlyArray<JsonCompatibleObject | JsonCompatibleArray | undefined>): JsonCompatibleObject; | ||
export declare function appendJson(...entries: ReadonlyArray<JsonCompatibleValue | undefined>): JsonCompatibleObject | JsonCompatibleArray; |
@@ -42,5 +42,3 @@ import { check } from '@augment-vir/assert'; | ||
const firstEntry = copyThroughJson(entries[0]); | ||
const combinedData = typeof firstEntry === 'object' | ||
? firstEntry | ||
: [firstEntry]; | ||
const combinedData = (typeof firstEntry === 'object' ? firstEntry : [firstEntry]); | ||
entries.slice(1).forEach((entry) => { | ||
@@ -47,0 +45,0 @@ if (check.isArray(combinedData)) { |
@@ -22,3 +22,2 @@ export * from './augments/array/array-map.js'; | ||
export * from './augments/json/copy-through-json.js'; | ||
export * from './augments/json/json-compatible.js'; | ||
export * from './augments/json/jsonify.js'; | ||
@@ -25,0 +24,0 @@ export * from './augments/log/log-colors.js'; |
@@ -22,3 +22,2 @@ export * from './augments/array/array-map.js'; | ||
export * from './augments/json/copy-through-json.js'; | ||
export * from './augments/json/json-compatible.js'; | ||
export * from './augments/json/jsonify.js'; | ||
@@ -25,0 +24,0 @@ export * from './augments/log/log-colors.js'; |
{ | ||
"name": "@augment-vir/common", | ||
"version": "30.0.3", | ||
"version": "30.0.4", | ||
"description": "A collection of augments, helpers types, functions, and classes for any JavaScript environment.", | ||
@@ -42,4 +42,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@augment-vir/assert": "^30.0.2", | ||
"@augment-vir/core": "^30.0.2", | ||
"@augment-vir/assert": "^30.0.4", | ||
"@augment-vir/core": "^30.0.4", | ||
"@date-vir/duration": "^6.0.0", | ||
@@ -46,0 +46,0 @@ "ansi-styles": "^6.2.1", |
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
229773
178
6405
Updated@augment-vir/assert@^30.0.4
Updated@augment-vir/core@^30.0.4