Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@smithy/core

Package Overview
Dependencies
Maintainers
3
Versions
121
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.21.1
to
3.22.0
+7
-1
dist-cjs/submodules/schema/index.js

@@ -326,3 +326,3 @@ 'use strict';

const sc = this.schema;
if (sc[0] === 0) {
if (Array.isArray(sc) && sc[0] === 0) {
return sc[4];

@@ -357,2 +357,5 @@ }

const sc = this.getSchema();
if (typeof sc !== "object") {
return false;
}
const id = sc[0];

@@ -365,2 +368,5 @@ return (id === 3 ||

const sc = this.getSchema();
if (typeof sc !== "object") {
return false;
}
return sc[0] === 4;

@@ -367,0 +373,0 @@ }

@@ -86,3 +86,3 @@ import { deref } from "../deref";

const sc = this.schema;
if (sc[0] === 0) {
if (Array.isArray(sc) && sc[0] === 0) {
return sc[4];

@@ -117,2 +117,5 @@ }

const sc = this.getSchema();
if (typeof sc !== "object") {
return false;
}
const id = sc[0];

@@ -125,2 +128,5 @@ return (id === 3 ||

const sc = this.getSchema();
if (typeof sc !== "object") {
return false;
}
return sc[0] === 4;

@@ -127,0 +133,0 @@ }

+1
-1
{
"name": "@smithy/core",
"version": "3.21.1",
"version": "3.22.0",
"scripts": {

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