Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 48 additions & 15 deletions ts-binary-wrapper/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion ts-binary-wrapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,13 @@
"dependencies": {
"@sentry/node": "^7.36.0",
"global-agent": "^3.0.0"
}
},
"overrides": {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both are needed to create a package that does not contain the warning when ran with npm 12.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack

"boolean": "file:vendor/boolean"
},
"bundleDependencies": [
"global-agent",
"roarr",
"boolean"
]
}
8 changes: 8 additions & 0 deletions ts-binary-wrapper/vendor/boolean/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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.
18 changes: 18 additions & 0 deletions ts-binary-wrapper/vendor/boolean/build/lib/boolean.js
Original file line number Diff line number Diff line change
@@ -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;
17 changes: 17 additions & 0 deletions ts-binary-wrapper/vendor/boolean/build/lib/index.js
Original file line number Diff line number Diff line change
@@ -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;
},
});
29 changes: 29 additions & 0 deletions ts-binary-wrapper/vendor/boolean/build/lib/isBooleanable.js
Original file line number Diff line number Diff line change
@@ -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;
36 changes: 36 additions & 0 deletions ts-binary-wrapper/vendor/boolean/package.json
Original file line number Diff line number Diff line change
@@ -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"
}