From eac323a44b74581456c6b19d0b98bc002540a339 Mon Sep 17 00:00:00 2001 From: Octavian Comanescu Date: Fri, 17 Jul 2026 15:42:38 +0300 Subject: [PATCH] chore: self vendor boolean@3.2.0 --- ts-binary-wrapper/package-lock.json | 63 ++++++++++++++----- ts-binary-wrapper/package.json | 10 ++- ts-binary-wrapper/vendor/boolean/LICENSE.txt | 8 +++ .../vendor/boolean/build/lib/boolean.js | 18 ++++++ .../vendor/boolean/build/lib/index.js | 17 +++++ .../vendor/boolean/build/lib/isBooleanable.js | 29 +++++++++ ts-binary-wrapper/vendor/boolean/package.json | 36 +++++++++++ 7 files changed, 165 insertions(+), 16 deletions(-) create mode 100644 ts-binary-wrapper/vendor/boolean/LICENSE.txt create mode 100644 ts-binary-wrapper/vendor/boolean/build/lib/boolean.js create mode 100644 ts-binary-wrapper/vendor/boolean/build/lib/index.js create mode 100644 ts-binary-wrapper/vendor/boolean/build/lib/isBooleanable.js create mode 100644 ts-binary-wrapper/vendor/boolean/package.json diff --git a/ts-binary-wrapper/package-lock.json b/ts-binary-wrapper/package-lock.json index ecf5dd657f..263580239e 100644 --- a/ts-binary-wrapper/package-lock.json +++ b/ts-binary-wrapper/package-lock.json @@ -7,6 +7,11 @@ "": { "name": "snyk", "version": "1.0.0-monorepo", + "bundleDependencies": [ + "global-agent", + "roarr", + "boolean" + ], "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { @@ -1312,9 +1317,8 @@ "dev": true }, "node_modules/boolean": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", - "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==" + "resolved": "node_modules/global-agent/vendor/boolean", + "link": true }, "node_modules/brace-expansion": { "version": "1.1.11", @@ -1590,6 +1594,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "inBundle": true, "dependencies": { "has-property-descriptors": "^1.0.0", "object-keys": "^1.1.1" @@ -1613,7 +1618,8 @@ "node_modules/detect-node": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", - "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==" + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "inBundle": true }, "node_modules/diff-sequences": { "version": "29.3.1", @@ -1660,7 +1666,8 @@ "node_modules/es6-error": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", - "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==" + "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", + "inBundle": true }, "node_modules/escalade": { "version": "3.1.1", @@ -1804,7 +1811,8 @@ "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "inBundle": true }, "node_modules/gensync": { "version": "1.0.0-beta.2", @@ -1828,6 +1836,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", + "inBundle": true, "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", @@ -1882,6 +1891,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz", "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==", + "inBundle": true, "dependencies": { "boolean": "^3.0.1", "es6-error": "^4.1.1", @@ -1898,6 +1908,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "inBundle": true, "dependencies": { "yallist": "^4.0.0" }, @@ -1909,6 +1920,7 @@ "version": "7.3.8", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "inBundle": true, "dependencies": { "lru-cache": "^6.0.0" }, @@ -1922,8 +1934,10 @@ "node_modules/global-agent/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "inBundle": true }, + "node_modules/global-agent/vendor/boolean": {}, "node_modules/globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", @@ -1937,6 +1951,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "inBundle": true, "dependencies": { "define-properties": "^1.1.3" }, @@ -1957,6 +1972,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "inBundle": true, "dependencies": { "function-bind": "^1.1.1" }, @@ -1977,6 +1993,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "inBundle": true, "dependencies": { "get-intrinsic": "^1.1.1" }, @@ -1988,6 +2005,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "inBundle": true, "engines": { "node": ">= 0.4" }, @@ -2860,7 +2878,8 @@ "node_modules/json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "inBundle": true }, "node_modules/json5": { "version": "2.2.3", @@ -2964,6 +2983,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", + "inBundle": true, "dependencies": { "escape-string-regexp": "^4.0.0" }, @@ -2975,6 +2995,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "inBundle": true, "engines": { "node": ">=10" }, @@ -3070,6 +3091,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "inBundle": true, "engines": { "node": ">= 0.4" } @@ -3359,6 +3381,7 @@ "version": "2.15.4", "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", + "inBundle": true, "dependencies": { "boolean": "^3.0.1", "detect-node": "^2.0.4", @@ -3371,11 +3394,17 @@ "node": ">=8.0" } }, + "node_modules/roarr/node_modules/boolean": { + "resolved": "node_modules/roarr/vendor/boolean", + "link": true + }, "node_modules/roarr/node_modules/sprintf-js": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", - "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==" + "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==", + "inBundle": true }, + "node_modules/roarr/vendor/boolean": {}, "node_modules/semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", @@ -3388,12 +3417,14 @@ "node_modules/semver-compare": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", - "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==" + "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", + "inBundle": true }, "node_modules/serialize-error": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", + "inBundle": true, "dependencies": { "type-fest": "^0.13.1" }, @@ -3408,6 +3439,7 @@ "version": "0.13.1", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "inBundle": true, "engines": { "node": ">=10" }, @@ -4922,9 +4954,7 @@ "dev": true }, "boolean": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", - "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==" + "version": "file:node_modules/global-agent/vendor/boolean" }, "brace-expansion": { "version": "1.1.11", @@ -5330,7 +5360,7 @@ "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz", "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==", "requires": { - "boolean": "^3.0.1", + "boolean": "file:vendor/boolean", "es6-error": "^4.1.1", "matcher": "^3.0.0", "roarr": "^2.15.3", @@ -6438,7 +6468,7 @@ "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", "requires": { - "boolean": "^3.0.1", + "boolean": "file:vendor/boolean", "detect-node": "^2.0.4", "globalthis": "^1.0.1", "json-stringify-safe": "^5.0.1", @@ -6446,6 +6476,9 @@ "sprintf-js": "^1.1.2" }, "dependencies": { + "boolean": { + "version": "file:node_modules/roarr/vendor/boolean" + }, "sprintf-js": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", diff --git a/ts-binary-wrapper/package.json b/ts-binary-wrapper/package.json index 6648f1eb7d..a5a143bcfb 100644 --- a/ts-binary-wrapper/package.json +++ b/ts-binary-wrapper/package.json @@ -52,5 +52,13 @@ "dependencies": { "@sentry/node": "^7.36.0", "global-agent": "^3.0.0" - } + }, + "overrides": { + "boolean": "file:vendor/boolean" + }, + "bundleDependencies": [ + "global-agent", + "roarr", + "boolean" + ] } diff --git a/ts-binary-wrapper/vendor/boolean/LICENSE.txt b/ts-binary-wrapper/vendor/boolean/LICENSE.txt new file mode 100644 index 0000000000..c152105944 --- /dev/null +++ b/ts-binary-wrapper/vendor/boolean/LICENSE.txt @@ -0,0 +1,8 @@ +The MIT License (MIT) +Copyright (c) 2014-2022 the native web. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/ts-binary-wrapper/vendor/boolean/build/lib/boolean.js b/ts-binary-wrapper/vendor/boolean/build/lib/boolean.js new file mode 100644 index 0000000000..dc52ce478a --- /dev/null +++ b/ts-binary-wrapper/vendor/boolean/build/lib/boolean.js @@ -0,0 +1,18 @@ +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.boolean = void 0; +const boolean = function (value) { + switch (Object.prototype.toString.call(value)) { + case '[object String]': + return ['true', 't', 'yes', 'y', 'on', '1'].includes( + value.trim().toLowerCase(), + ); + case '[object Number]': + return value.valueOf() === 1; + case '[object Boolean]': + return value.valueOf(); + default: + return false; + } +}; +exports.boolean = boolean; diff --git a/ts-binary-wrapper/vendor/boolean/build/lib/index.js b/ts-binary-wrapper/vendor/boolean/build/lib/index.js new file mode 100644 index 0000000000..159cab6b57 --- /dev/null +++ b/ts-binary-wrapper/vendor/boolean/build/lib/index.js @@ -0,0 +1,17 @@ +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.isBooleanable = exports.boolean = void 0; +const boolean_1 = require('./boolean'); +Object.defineProperty(exports, 'boolean', { + enumerable: true, + get: function () { + return boolean_1.boolean; + }, +}); +const isBooleanable_1 = require('./isBooleanable'); +Object.defineProperty(exports, 'isBooleanable', { + enumerable: true, + get: function () { + return isBooleanable_1.isBooleanable; + }, +}); diff --git a/ts-binary-wrapper/vendor/boolean/build/lib/isBooleanable.js b/ts-binary-wrapper/vendor/boolean/build/lib/isBooleanable.js new file mode 100644 index 0000000000..b229880159 --- /dev/null +++ b/ts-binary-wrapper/vendor/boolean/build/lib/isBooleanable.js @@ -0,0 +1,29 @@ +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.isBooleanable = void 0; +const isBooleanable = function (value) { + switch (Object.prototype.toString.call(value)) { + case '[object String]': + return [ + 'true', + 't', + 'yes', + 'y', + 'on', + '1', + 'false', + 'f', + 'no', + 'n', + 'off', + '0', + ].includes(value.trim().toLowerCase()); + case '[object Number]': + return [0, 1].includes(value.valueOf()); + case '[object Boolean]': + return true; + default: + return false; + } +}; +exports.isBooleanable = isBooleanable; diff --git a/ts-binary-wrapper/vendor/boolean/package.json b/ts-binary-wrapper/vendor/boolean/package.json new file mode 100644 index 0000000000..81e49fc6e4 --- /dev/null +++ b/ts-binary-wrapper/vendor/boolean/package.json @@ -0,0 +1,36 @@ +{ + "name": "boolean", + "version": "3.2.0", + "description": "boolean converts lots of things to boolean.", + "contributors": [ + { + "name": "Golo Roden", + "email": "golo.roden@thenativeweb.io" + }, + { + "name": "Matthias Wagler", + "email": "matthias.wagler@thenativeweb.io" + }, + { + "name": "Ryan Smith", + "email": "ryan.smith@ht2labs.com" + }, + { + "name": "Thomas Schaaf", + "email": "schaaf@komola.de" + }, + { + "name": "Sebastian Mares", + "email": "camil.sebastian@mares.email" + } + ], + "main": "build/lib/index.js", + "types": "build/lib/index.d.ts", + "dependencies": {}, + "scripts": {}, + "repository": { + "type": "git", + "url": "git://github.com/thenativeweb/boolean.git" + }, + "license": "MIT" +}