This commit is contained in:
2022-09-30 05:39:11 +00:00
parent 41ee9463ae
commit 4687fa49bc
11418 changed files with 1312504 additions and 0 deletions

3
buildfiles/node_modules/boolean/.eslintrc.json generated vendored Normal file
View File

@ -0,0 +1,3 @@
{
"extends": "es/node"
}

3
buildfiles/node_modules/boolean/.releaserc.json generated vendored Normal file
View File

@ -0,0 +1,3 @@
{
"extends": "semantic-release-configuration"
}

13
buildfiles/node_modules/boolean/CHANGELOG.md generated vendored Normal file
View File

@ -0,0 +1,13 @@
## [3.0.2](https://github.com/thenativeweb/boolean/compare/3.0.1...3.0.2) (2020-11-03)
### Bug Fixes
* Fix headline for robot section in readme. ([#191](https://github.com/thenativeweb/boolean/issues/191)) ([6b7b72b](https://github.com/thenativeweb/boolean/commit/6b7b72b6d5d5c1ad2251c5959b35c8c87b3421a5))
## [3.0.1](https://github.com/thenativeweb/boolean/compare/3.0.0...3.0.1) (2020-02-11)
### Bug Fixes
* Simplify comparison code to not use unicode regexp flag ([#99](https://github.com/thenativeweb/boolean/issues/99)) ([2be2aeb](https://github.com/thenativeweb/boolean/commit/2be2aeb244c060eccb388dacc6903bbad193e745))

8
buildfiles/node_modules/boolean/LICENSE.txt generated vendored Normal file
View File

@ -0,0 +1,8 @@
The MIT License (MIT)
Copyright (c) 2014-2020 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.

67
buildfiles/node_modules/boolean/README.md generated vendored Normal file
View File

@ -0,0 +1,67 @@
# boolean
boolean converts lots of things to boolean.
## Status
| Category | Status |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| Version | [![npm](https://img.shields.io/npm/v/boolean)](https://www.npmjs.com/package/boolean) |
| Dependencies | ![David](https://img.shields.io/david/thenativeweb/boolean) |
| Dev dependencies | ![David](https://img.shields.io/david/dev/thenativeweb/boolean) |
| Build | ![GitHub Actions](https://github.com/thenativeweb/boolean/workflows/Release/badge.svg?branch=master) |
| License | ![GitHub](https://img.shields.io/github/license/thenativeweb/boolean) |
## Installation
```shell
$ npm install boolean
```
## Quick start
First you need to add a reference to boolean in your application:
```javascript
const { boolean } = require('boolean');
```
If you use TypeScript, use the following code instead:
```typescript
import { boolean } from 'boolean';
```
To verify a value for its boolean value, call the `boolean` function and provide the value in question as parameter.
```javascript
console.log(boolean('true')); // => true
```
The `boolean` function considers the following values to be equivalent to `true`:
- `true` (boolean)
- `'true'` (string)
- `'TRUE'` (string)
- `'t'` (string)
- `'T'` (string)
- `'yes'` (string)
- `'YES'` (string)
- `'y'` (string)
- `'Y'` (string)
- `'on'` (string)
- `'ON'` (string)
- `'1'` (string)
- `1` (number)
_Please note that if you provide a string, it will be trimmed._
All other values, including `undefined` and `null` are considered to be `false`.
## Running quality assurance
To run quality assurance for this module use [roboter](https://www.npmjs.com/package/roboter):
```shell
$ npx roboter
```

View File

@ -0,0 +1,2 @@
declare const boolean: (value: any) => boolean;
export { boolean };

16
buildfiles/node_modules/boolean/build/lib/boolean.js generated vendored Normal file
View File

@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.boolean = void 0;
const boolean = function (value) {
if (typeof value === 'string') {
return ['true', 't', 'yes', 'y', 'on', '1'].includes(value.trim().toLowerCase());
}
if (typeof value === 'number') {
return value === 1;
}
if (typeof value === 'boolean') {
return value;
}
return false;
};
exports.boolean = boolean;

17
buildfiles/node_modules/boolean/lib/boolean.ts generated vendored Normal file
View File

@ -0,0 +1,17 @@
const boolean = function (value: any): boolean {
if (typeof value === 'string') {
return [ 'true', 't', 'yes', 'y', 'on', '1' ].includes(value.trim().toLowerCase());
}
if (typeof value === 'number') {
return value === 1;
}
if (typeof value === 'boolean') {
return value;
}
return false;
};
export { boolean };

70
buildfiles/node_modules/boolean/package.json generated vendored Normal file
View File

@ -0,0 +1,70 @@
{
"_from": "boolean@^3.0.1",
"_id": "boolean@3.0.2",
"_inBundle": false,
"_integrity": "sha512-RwywHlpCRc3/Wh81MiCKun4ydaIFyW5Ea6JbL6sRCVx5q5irDw7pMXBUFYF/jArQ6YrG36q0kpovc9P/Kd3I4g==",
"_location": "/boolean",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "boolean@^3.0.1",
"name": "boolean",
"escapedName": "boolean",
"rawSpec": "^3.0.1",
"saveSpec": null,
"fetchSpec": "^3.0.1"
},
"_requiredBy": [
"/global-agent",
"/roarr"
],
"_resolved": "https://registry.npmjs.org/boolean/-/boolean-3.0.2.tgz",
"_shasum": "df1baa18b6a2b0e70840475e1d93ec8fe75b2570",
"_spec": "boolean@^3.0.1",
"_where": "/home/shihaam/www/freezer.shihaam.me/node_modules/global-agent",
"bugs": {
"url": "https://github.com/thenativeweb/boolean/issues"
},
"bundleDependencies": false,
"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"
}
],
"dependencies": {},
"deprecated": false,
"description": "boolean converts lots of things to boolean.",
"devDependencies": {
"assertthat": "5.2.1",
"roboter": "11.5.1",
"semantic-release-configuration": "1.0.23"
},
"homepage": "https://github.com/thenativeweb/boolean#readme",
"keywords": [
"boolean",
"parser"
],
"license": "MIT",
"main": "build/lib/boolean.js",
"name": "boolean",
"repository": {
"type": "git",
"url": "git://github.com/thenativeweb/boolean.git"
},
"types": "build/lib/boolean.d.ts",
"version": "3.0.2"
}

16
buildfiles/node_modules/boolean/tsconfig.json generated vendored Normal file
View File

@ -0,0 +1,16 @@
{
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"esModuleInterop": true,
"lib": [ "esnext" ],
"module": "commonjs",
"outDir": "build",
"resolveJsonModule": true,
"strict": true,
"target": "es2019"
},
"include": [
"./**/*.ts"
]
}