Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@augment-vir/common

Package Overview
Dependencies
Maintainers
1
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@augment-vir/common - npm Package Compare versions

Comparing version 30.0.3 to 30.0.4

4

dist/augments/json/append-json.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc