docs(changelog test): i test how to automate ChangeLog

This commit is contained in:
Mert Gör
2024-01-31 23:37:33 +03:00
parent 6dfce49cac
commit 57619fa0c1
4206 changed files with 206871 additions and 0 deletions

19
node_modules/merge/LICENSE generated vendored Normal file
View File

@ -0,0 +1,19 @@
The MIT License (MIT)
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.

84
node_modules/merge/README.md generated vendored Normal file
View File

@ -0,0 +1,84 @@
# Merge
(recursive)? merging of (cloned)? objects.
# Install
## Node.js
```sh
npm i merge
```
```js
import merge from 'merge'
```
## Browser
```html
<script src="https://cdn.jsdelivr.net/gh/yeikos/js.merge/dist/merge.browser.min.js"></script>
```
```js
window.merge
```
# API
```typescript
merge(clone: boolean, ...items: Object[])
merge(...items: Object[])
merge.recursive(clone: boolean, ...items: Object[])
merge.recursive(...items: Object[])
```
# Examples
```js
// Merge
{
var objectA = {}
merge(objectA,
{ value: 1 },
{ str: 'hello world' }
)
var objectB = merge(true, objectA,
{ value: 2 }
)
objectA // { value: 1, str: 'hello world' }
objectB // { value: 2, str: 'hello world' }
}
// Recursive merge
{
var objectA = {}
merge.recursive(objectA,
{ level: { value: 1 } },
{ level: { str: 'hello world' } }
)
var objectB = merge.recursive(true, objectA,
{ level: { value: 2 } }
)
objectA.level // { value: 1, str: 'hello world' }
objectB.level // { value: 2, str: 'hello world' }
}
```
# Test
## Node.js
```sh
npm test
```
## Browser
```
./dist/merge.browser.test.html
```

19
node_modules/merge/lib/src/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,19 @@
export default main;
export declare function main(clone: boolean, ...items: any[]): any;
export declare namespace main {
var clone: typeof import(".").clone;
var isPlainObject: typeof import(".").isPlainObject;
var recursive: typeof import(".").recursive;
}
export declare function main(...items: any[]): any;
export declare namespace main {
var clone: typeof import(".").clone;
var isPlainObject: typeof import(".").isPlainObject;
var recursive: typeof import(".").recursive;
}
export declare function merge(clone: boolean, ...items: any[]): any;
export declare function merge(...items: any[]): any;
export declare function recursive(clone: boolean, ...items: any[]): any;
export declare function recursive(...items: any[]): any;
export declare function clone<T>(input: T): T;
export declare function isPlainObject(input: any): input is Object;

83
node_modules/merge/lib/src/index.js generated vendored Normal file
View File

@ -0,0 +1,83 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPlainObject = exports.clone = exports.recursive = exports.merge = exports.main = void 0;
module.exports = exports = main;
exports.default = main;
function main() {
var items = [];
for (var _i = 0; _i < arguments.length; _i++) {
items[_i] = arguments[_i];
}
return merge.apply(void 0, items);
}
exports.main = main;
main.clone = clone;
main.isPlainObject = isPlainObject;
main.recursive = recursive;
function merge() {
var items = [];
for (var _i = 0; _i < arguments.length; _i++) {
items[_i] = arguments[_i];
}
return _merge(items[0] === true, false, items);
}
exports.merge = merge;
function recursive() {
var items = [];
for (var _i = 0; _i < arguments.length; _i++) {
items[_i] = arguments[_i];
}
return _merge(items[0] === true, true, items);
}
exports.recursive = recursive;
function clone(input) {
if (Array.isArray(input)) {
var output = [];
for (var index = 0; index < input.length; ++index)
output.push(clone(input[index]));
return output;
}
else if (isPlainObject(input)) {
var output = {};
for (var index in input)
output[index] = clone(input[index]);
return output;
}
else {
return input;
}
}
exports.clone = clone;
function isPlainObject(input) {
return input && typeof input === 'object' && !Array.isArray(input);
}
exports.isPlainObject = isPlainObject;
function _recursiveMerge(base, extend) {
if (!isPlainObject(base))
return extend;
for (var key in extend) {
if (key === '__proto__' || key === 'constructor' || key === 'prototype')
continue;
base[key] = (isPlainObject(base[key]) && isPlainObject(extend[key])) ?
_recursiveMerge(base[key], extend[key]) :
extend[key];
}
return base;
}
function _merge(isClone, isRecursive, items) {
var result;
if (isClone || !isPlainObject(result = items.shift()))
result = {};
for (var index = 0; index < items.length; ++index) {
var item = items[index];
if (!isPlainObject(item))
continue;
for (var key in item) {
if (key === '__proto__' || key === 'constructor' || key === 'prototype')
continue;
var value = isClone ? clone(item[key]) : item[key];
result[key] = isRecursive ? _recursiveMerge(result[key], value) : value;
}
}
return result;
}

44
node_modules/merge/package.json generated vendored Normal file
View File

@ -0,0 +1,44 @@
{
"name": "merge",
"version": "2.1.1",
"author": "yeikos",
"description": "(recursive)? merging of (cloned)? objects.",
"main": "lib/src/index.js",
"files": [
"lib/src/index.d.ts"
],
"license": "MIT",
"homepage": "https://github.com/yeikos/js.merge",
"repository": {
"type": "git",
"url": "https://github.com/yeikos/js.merge.git"
},
"keywords": [
"merge",
"recursive",
"extend",
"clone",
"object",
"browser"
],
"scripts": {
"build": "npm run build:ts && npm run build:wp",
"dev": "./node_modules/.bin/concurrently --kill-others \"npm run dev:ts\" \"npm run dev:wp\"",
"test": "./node_modules/.bin/mocha lib/test/index.js",
"build:ts": "./node_modules/.bin/tsc -p tsconfig.json",
"build:wp": "./node_modules/.bin/webpack --config webpack.config.js",
"dev:ts": "./node_modules/.bin/tsc -p tsconfig.json -w",
"dev:wp": "./node_modules/.bin/webpack --config webpack.config.js -w"
},
"devDependencies": {
"@types/chai": "^4.2.14",
"@types/mocha": "^8.0.4",
"@types/node": "^14.14.7",
"chai": "^4.2.0",
"concurrently": "^5.3.0",
"mocha": "^8.2.1",
"typescript": "^4.0.5",
"webpack": "^5.4.0",
"webpack-cli": "^4.2.0"
}
}