You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@smithy/core

Package Overview
Dependencies
Maintainers
3
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/core - npm Package Compare versions

Comparing version
3.23.6
to
3.23.7
+2
-8
dist-cjs/submodules/cbor/index.js

@@ -932,8 +932,5 @@ 'use strict';

const memberSchema = ns.getValueSchema();
const sparse = !!ns.getMergedTraits().sparse;
for (const item of value) {
const itemValue = this.readValue(memberSchema, item);
if (itemValue != null || sparse) {
newArray.push(itemValue);
}
newArray.push(itemValue);
}

@@ -944,9 +941,6 @@ return newArray;

if (ns.isMapSchema()) {
const sparse = !!ns.getMergedTraits().sparse;
const targetSchema = ns.getValueSchema();
for (const key of Object.keys(value)) {
const itemValue = this.readValue(targetSchema, value[key]);
if (itemValue != null || sparse) {
newObject[key] = itemValue;
}
newObject[key] = itemValue;
}

@@ -953,0 +947,0 @@ }

@@ -157,8 +157,5 @@ import { SerdeContext } from "@smithy/core/protocols";

const memberSchema = ns.getValueSchema();
const sparse = !!ns.getMergedTraits().sparse;
for (const item of value) {
const itemValue = this.readValue(memberSchema, item);
if (itemValue != null || sparse) {
newArray.push(itemValue);
}
newArray.push(itemValue);
}

@@ -169,9 +166,6 @@ return newArray;

if (ns.isMapSchema()) {
const sparse = !!ns.getMergedTraits().sparse;
const targetSchema = ns.getValueSchema();
for (const key of Object.keys(value)) {
const itemValue = this.readValue(targetSchema, value[key]);
if (itemValue != null || sparse) {
newObject[key] = itemValue;
}
newObject[key] = itemValue;
}

@@ -178,0 +172,0 @@ }

+2
-2
{
"name": "@smithy/core",
"version": "3.23.6",
"version": "3.23.7",
"scripts": {

@@ -88,3 +88,3 @@ "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",

"@smithy/util-middleware": "^4.2.10",
"@smithy/util-stream": "^4.5.15",
"@smithy/util-stream": "^4.5.16",
"@smithy/util-utf8": "^4.2.1",

@@ -91,0 +91,0 @@ "@smithy/uuid": "^1.1.1",