@smithy/core
Advanced tools
@@ -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'", |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
451953
0.07%11266
0.11%