From dfd75c9926520bb1797d4f4843861be8232896de Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Mon, 12 Sep 2022 09:19:12 +0000 Subject: [PATCH 1/6] Restyled by clang-format --- jest.config.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/jest.config.js b/jest.config.js index b4169df..23cc82c 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,9 +1,9 @@ module.exports = { - transform: { - '(jsx?|tsx?)$': 'ts-jest', - }, - testRegex: '(test)\\.(jsx?|tsx?)$', - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], - coverageDirectory: './coverage/', - collectCoverage: true, + transform : { + '(jsx?|tsx?)$' : 'ts-jest', + }, + testRegex : '(test)\\.(jsx?|tsx?)$', + moduleFileExtensions : [ 'ts', 'tsx', 'js', 'jsx', 'json', 'node' ], + coverageDirectory : './coverage/', + collectCoverage : true, }; From d67391eb9ea3ee4aa6e31d13d3db12eac807ae97 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Mon, 12 Sep 2022 09:19:13 +0000 Subject: [PATCH 2/6] Restyled by jq --- package.json | 121 ++++++++++++++++++++++++-------------------------- tsconfig.json | 67 ++++++++++++++++------------ 2 files changed, 98 insertions(+), 90 deletions(-) diff --git a/package.json b/package.json index 780af71..d469ad7 100644 --- a/package.json +++ b/package.json @@ -1,64 +1,61 @@ { - "name": "waitasecond", - "version": "1.11.1", - "description": "Wait a second is an extremely simple and elegant tool for using working with async code and Promises. It is usable by browser, worker, and node environment and fully typed.", - "sideEffects": false, - "main": "./dist/main.js", - "types": "./dist/main.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/hejny/waitasecond" - }, - "author": "Pavol Hejný", - "license": "SEE LICENSE IN LICENSE", - "scripts": { - "test": "npm run test-unit && npm run test-integration", - "test-unit": "jest --config jestconfig.json", - "test-integration": "", - "--TODO--test-integration": "./node_modules/.bin/cypress run", - "test-integration-interactive": "./node_modules/.bin/cypress open", - "samples-server": "ts-node-dev --project ./samples/samplesServer/tsconfig.json ./samples/samplesServer/samplesServer.ts", - "build": "rm -rf ./dist && rollup --config rollup.config.ts", - "build-watch": "rollup --config rollup.config.ts --watch", - "prettier": "prettier --config .prettierrc --write \"{src,test,.vscode}/**/*.{ts,json}\"", - "pretty-imports": "npx organize-imports-cli tsconfig.json", - "prettier-commit": "git diff --exit-code && npm run pretty-imports && npm run prettier && git add src && git commit --allow-empty -m \"Prettier\"", - "-----generate-documentation": "typedoc", - "-----generate-documentation-commit": "git diff --exit-code && npm run generate-documentation && git add docs && git commit --allow-empty -m \"Documentation\"", - "lint": "tslint -p tsconfig.json", - "generate-main-exports": "ts-node --project ./scripts/generate-main-exports/tsconfig.json ./scripts/generate-main-exports/generate-main-exports.ts", - "generate-main-exports-commit": "git diff --exit-code && npm run generate-main-exports && npm run prettier && git add src && git commit --allow-empty -m \"Updating exports\"", - "preversion": "npm run lint && npm test && npm run generate-main-exports-commit && npm run build && npm run prettier-commit", - "postversion": "npm run generate-documentation-commit && git push && git push --tags && npm publish" - }, - "dependencies": { - "ts-essentials": "8.1.0" - }, - "dependencies": {}, - "devDependencies": { - "@types/cypress-image-snapshot": "3.1.6", - "@types/express": "4.17.13", - "@types/jest": "27.0.1", - "@types/serve-index": "1.9.1", - "codecov": "3.8.3", - "cypress": "8.4.0", - "cypress-image-snapshot": "4.0.1", - "express": "4.17.1", - "express-throttle-bandwidth": "1.0.1", - "glob-promise": "4.2.0", - "jest": "27.2.0", - "onchange": "7.1.0", - "open": "8.2.1", - "organize-imports-cli": "0.8.0", - "prettier": "2.4.0", - "serve-index": "1.9.1", - "serve-static": "1.14.1", - "ts-jest": "27.0.5", - "ts-node": "10.2.1", - "ts-node-dev": "1.1.8", - "tslint": "5.20.1", - "tslint-config-prettier": "1.18.0", - "typedoc": "0.22.11", - "typescript": "4.4.3" - } + "name": "waitasecond", + "version": "1.11.1", + "description": "Wait a second is an extremely simple and elegant tool for using working with async code and Promises. It is usable by browser, worker, and node environment and fully typed.", + "sideEffects": false, + "main": "./dist/main.js", + "types": "./dist/main.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/hejny/waitasecond" + }, + "author": "Pavol Hejný", + "license": "SEE LICENSE IN LICENSE", + "scripts": { + "test": "npm run test-unit && npm run test-integration", + "test-unit": "jest --config jestconfig.json", + "test-integration": "", + "--TODO--test-integration": "./node_modules/.bin/cypress run", + "test-integration-interactive": "./node_modules/.bin/cypress open", + "samples-server": "ts-node-dev --project ./samples/samplesServer/tsconfig.json ./samples/samplesServer/samplesServer.ts", + "build": "rm -rf ./dist && rollup --config rollup.config.ts", + "build-watch": "rollup --config rollup.config.ts --watch", + "prettier": "prettier --config .prettierrc --write \"{src,test,.vscode}/**/*.{ts,json}\"", + "pretty-imports": "npx organize-imports-cli tsconfig.json", + "prettier-commit": "git diff --exit-code && npm run pretty-imports && npm run prettier && git add src && git commit --allow-empty -m \"Prettier\"", + "-----generate-documentation": "typedoc", + "-----generate-documentation-commit": "git diff --exit-code && npm run generate-documentation && git add docs && git commit --allow-empty -m \"Documentation\"", + "lint": "tslint -p tsconfig.json", + "generate-main-exports": "ts-node --project ./scripts/generate-main-exports/tsconfig.json ./scripts/generate-main-exports/generate-main-exports.ts", + "generate-main-exports-commit": "git diff --exit-code && npm run generate-main-exports && npm run prettier && git add src && git commit --allow-empty -m \"Updating exports\"", + "preversion": "npm run lint && npm test && npm run generate-main-exports-commit && npm run build && npm run prettier-commit", + "postversion": "npm run generate-documentation-commit && git push && git push --tags && npm publish" + }, + "dependencies": {}, + "devDependencies": { + "@types/cypress-image-snapshot": "3.1.6", + "@types/express": "4.17.13", + "@types/jest": "27.0.1", + "@types/serve-index": "1.9.1", + "codecov": "3.8.3", + "cypress": "8.4.0", + "cypress-image-snapshot": "4.0.1", + "express": "4.17.1", + "express-throttle-bandwidth": "1.0.1", + "glob-promise": "4.2.0", + "jest": "27.2.0", + "onchange": "7.1.0", + "open": "8.2.1", + "organize-imports-cli": "0.8.0", + "prettier": "2.4.0", + "serve-index": "1.9.1", + "serve-static": "1.14.1", + "ts-jest": "27.0.5", + "ts-node": "10.2.1", + "ts-node-dev": "1.1.8", + "tslint": "5.20.1", + "tslint-config-prettier": "1.18.0", + "typedoc": "0.22.11", + "typescript": "4.4.3" + } } diff --git a/tsconfig.json b/tsconfig.json index 09ad6c1..7aa4d6e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,30 +1,41 @@ { - "compilerOptions": { - "target": "es3", - "module": "commonjs", - "sourceMap": true, - "declaration": true, - "noEmit": true, - "outDir": "typings", - "alwaysStrict": true, - "forceConsistentCasingInFileNames": true, - "lib": ["dom", "es2017"], - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "esModuleInterop": true, - "skipLibCheck": true - }, - "typedocOptions": { - "name": "Waitasecond", - "entryPoints": ["./src/main.ts"], - "exclude": [], - "excludePrivate": true, - "includeVersion": true, - "hideGenerator": true, - "out": "./docs", - "gitRemote": "https://github.com/hejny/waitasecond" - }, - "include": ["src"], - "exclude": ["scripts", "samples", "test"] + "compilerOptions": { + "target": "es3", + "module": "commonjs", + "sourceMap": true, + "declaration": true, + "noEmit": true, + "outDir": "typings", + "alwaysStrict": true, + "forceConsistentCasingInFileNames": true, + "lib": [ + "dom", + "es2017" + ], + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "esModuleInterop": true, + "skipLibCheck": true + }, + "typedocOptions": { + "name": "Waitasecond", + "entryPoints": [ + "./src/main.ts" + ], + "exclude": [], + "excludePrivate": true, + "includeVersion": true, + "hideGenerator": true, + "out": "./docs", + "gitRemote": "https://github.com/hejny/waitasecond" + }, + "include": [ + "src" + ], + "exclude": [ + "scripts", + "samples", + "test" + ] } From 78618285f4279152b12b8818743794a657449459 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Mon, 12 Sep 2022 09:19:14 +0000 Subject: [PATCH 3/6] Restyled by prettier --- jest.config.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/jest.config.js b/jest.config.js index 23cc82c..b4169df 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,9 +1,9 @@ module.exports = { - transform : { - '(jsx?|tsx?)$' : 'ts-jest', - }, - testRegex : '(test)\\.(jsx?|tsx?)$', - moduleFileExtensions : [ 'ts', 'tsx', 'js', 'jsx', 'json', 'node' ], - coverageDirectory : './coverage/', - collectCoverage : true, + transform: { + '(jsx?|tsx?)$': 'ts-jest', + }, + testRegex: '(test)\\.(jsx?|tsx?)$', + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], + coverageDirectory: './coverage/', + collectCoverage: true, }; From 4d24257441dbf8d572e3c957e14ffe987ccfc73c Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Mon, 12 Sep 2022 09:19:15 +0000 Subject: [PATCH 4/6] Restyled by prettier-json --- package.json | 118 +++++++++++++++++++++++++------------------------- tsconfig.json | 67 ++++++++++++---------------- 2 files changed, 87 insertions(+), 98 deletions(-) diff --git a/package.json b/package.json index d469ad7..e158ba6 100644 --- a/package.json +++ b/package.json @@ -1,61 +1,61 @@ { - "name": "waitasecond", - "version": "1.11.1", - "description": "Wait a second is an extremely simple and elegant tool for using working with async code and Promises. It is usable by browser, worker, and node environment and fully typed.", - "sideEffects": false, - "main": "./dist/main.js", - "types": "./dist/main.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/hejny/waitasecond" - }, - "author": "Pavol Hejný", - "license": "SEE LICENSE IN LICENSE", - "scripts": { - "test": "npm run test-unit && npm run test-integration", - "test-unit": "jest --config jestconfig.json", - "test-integration": "", - "--TODO--test-integration": "./node_modules/.bin/cypress run", - "test-integration-interactive": "./node_modules/.bin/cypress open", - "samples-server": "ts-node-dev --project ./samples/samplesServer/tsconfig.json ./samples/samplesServer/samplesServer.ts", - "build": "rm -rf ./dist && rollup --config rollup.config.ts", - "build-watch": "rollup --config rollup.config.ts --watch", - "prettier": "prettier --config .prettierrc --write \"{src,test,.vscode}/**/*.{ts,json}\"", - "pretty-imports": "npx organize-imports-cli tsconfig.json", - "prettier-commit": "git diff --exit-code && npm run pretty-imports && npm run prettier && git add src && git commit --allow-empty -m \"Prettier\"", - "-----generate-documentation": "typedoc", - "-----generate-documentation-commit": "git diff --exit-code && npm run generate-documentation && git add docs && git commit --allow-empty -m \"Documentation\"", - "lint": "tslint -p tsconfig.json", - "generate-main-exports": "ts-node --project ./scripts/generate-main-exports/tsconfig.json ./scripts/generate-main-exports/generate-main-exports.ts", - "generate-main-exports-commit": "git diff --exit-code && npm run generate-main-exports && npm run prettier && git add src && git commit --allow-empty -m \"Updating exports\"", - "preversion": "npm run lint && npm test && npm run generate-main-exports-commit && npm run build && npm run prettier-commit", - "postversion": "npm run generate-documentation-commit && git push && git push --tags && npm publish" - }, - "dependencies": {}, - "devDependencies": { - "@types/cypress-image-snapshot": "3.1.6", - "@types/express": "4.17.13", - "@types/jest": "27.0.1", - "@types/serve-index": "1.9.1", - "codecov": "3.8.3", - "cypress": "8.4.0", - "cypress-image-snapshot": "4.0.1", - "express": "4.17.1", - "express-throttle-bandwidth": "1.0.1", - "glob-promise": "4.2.0", - "jest": "27.2.0", - "onchange": "7.1.0", - "open": "8.2.1", - "organize-imports-cli": "0.8.0", - "prettier": "2.4.0", - "serve-index": "1.9.1", - "serve-static": "1.14.1", - "ts-jest": "27.0.5", - "ts-node": "10.2.1", - "ts-node-dev": "1.1.8", - "tslint": "5.20.1", - "tslint-config-prettier": "1.18.0", - "typedoc": "0.22.11", - "typescript": "4.4.3" - } + "name": "waitasecond", + "version": "1.11.1", + "description": "Wait a second is an extremely simple and elegant tool for using working with async code and Promises. It is usable by browser, worker, and node environment and fully typed.", + "sideEffects": false, + "main": "./dist/main.js", + "types": "./dist/main.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/hejny/waitasecond" + }, + "author": "Pavol Hejný", + "license": "SEE LICENSE IN LICENSE", + "scripts": { + "test": "npm run test-unit && npm run test-integration", + "test-unit": "jest --config jestconfig.json", + "test-integration": "", + "--TODO--test-integration": "./node_modules/.bin/cypress run", + "test-integration-interactive": "./node_modules/.bin/cypress open", + "samples-server": "ts-node-dev --project ./samples/samplesServer/tsconfig.json ./samples/samplesServer/samplesServer.ts", + "build": "rm -rf ./dist && rollup --config rollup.config.ts", + "build-watch": "rollup --config rollup.config.ts --watch", + "prettier": "prettier --config .prettierrc --write \"{src,test,.vscode}/**/*.{ts,json}\"", + "pretty-imports": "npx organize-imports-cli tsconfig.json", + "prettier-commit": "git diff --exit-code && npm run pretty-imports && npm run prettier && git add src && git commit --allow-empty -m \"Prettier\"", + "-----generate-documentation": "typedoc", + "-----generate-documentation-commit": "git diff --exit-code && npm run generate-documentation && git add docs && git commit --allow-empty -m \"Documentation\"", + "lint": "tslint -p tsconfig.json", + "generate-main-exports": "ts-node --project ./scripts/generate-main-exports/tsconfig.json ./scripts/generate-main-exports/generate-main-exports.ts", + "generate-main-exports-commit": "git diff --exit-code && npm run generate-main-exports && npm run prettier && git add src && git commit --allow-empty -m \"Updating exports\"", + "preversion": "npm run lint && npm test && npm run generate-main-exports-commit && npm run build && npm run prettier-commit", + "postversion": "npm run generate-documentation-commit && git push && git push --tags && npm publish" + }, + "dependencies": {}, + "devDependencies": { + "@types/cypress-image-snapshot": "3.1.6", + "@types/express": "4.17.13", + "@types/jest": "27.0.1", + "@types/serve-index": "1.9.1", + "codecov": "3.8.3", + "cypress": "8.4.0", + "cypress-image-snapshot": "4.0.1", + "express": "4.17.1", + "express-throttle-bandwidth": "1.0.1", + "glob-promise": "4.2.0", + "jest": "27.2.0", + "onchange": "7.1.0", + "open": "8.2.1", + "organize-imports-cli": "0.8.0", + "prettier": "2.4.0", + "serve-index": "1.9.1", + "serve-static": "1.14.1", + "ts-jest": "27.0.5", + "ts-node": "10.2.1", + "ts-node-dev": "1.1.8", + "tslint": "5.20.1", + "tslint-config-prettier": "1.18.0", + "typedoc": "0.22.11", + "typescript": "4.4.3" + } } diff --git a/tsconfig.json b/tsconfig.json index 7aa4d6e..09ad6c1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,41 +1,30 @@ { - "compilerOptions": { - "target": "es3", - "module": "commonjs", - "sourceMap": true, - "declaration": true, - "noEmit": true, - "outDir": "typings", - "alwaysStrict": true, - "forceConsistentCasingInFileNames": true, - "lib": [ - "dom", - "es2017" - ], - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "esModuleInterop": true, - "skipLibCheck": true - }, - "typedocOptions": { - "name": "Waitasecond", - "entryPoints": [ - "./src/main.ts" - ], - "exclude": [], - "excludePrivate": true, - "includeVersion": true, - "hideGenerator": true, - "out": "./docs", - "gitRemote": "https://github.com/hejny/waitasecond" - }, - "include": [ - "src" - ], - "exclude": [ - "scripts", - "samples", - "test" - ] + "compilerOptions": { + "target": "es3", + "module": "commonjs", + "sourceMap": true, + "declaration": true, + "noEmit": true, + "outDir": "typings", + "alwaysStrict": true, + "forceConsistentCasingInFileNames": true, + "lib": ["dom", "es2017"], + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "esModuleInterop": true, + "skipLibCheck": true + }, + "typedocOptions": { + "name": "Waitasecond", + "entryPoints": ["./src/main.ts"], + "exclude": [], + "excludePrivate": true, + "includeVersion": true, + "hideGenerator": true, + "out": "./docs", + "gitRemote": "https://github.com/hejny/waitasecond" + }, + "include": ["src"], + "exclude": ["scripts", "samples", "test"] } From dba81a979116210f22565a0106def7ad5fe0ba12 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Mon, 12 Sep 2022 09:19:17 +0000 Subject: [PATCH 5/6] Restyled by prettier-markdown --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 37f5238..54cd992 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ - [![License of ⏰ Waitasecond](https://img.shields.io/github/license/hejny/waitasecond.svg?style=flat)](https://github.com/hejny/waitasecond/blob/main/LICENSE) [![NPM Version of ⏰ Waitasecond](https://badge.fury.io/js/waitasecond.svg)](https://www.npmjs.com/package/waitasecond) [![Quality of package ⏰ Waitasecond](https://packagequality.com/shield/waitasecond.svg)](https://packagequality.com/#?package=waitasecond) @@ -191,7 +190,6 @@ You can also ⭐ star the waitasecond package, [follow me on GitHub](https://git ## ✨ Partners - Collboard logo @@ -204,7 +202,6 @@ You can also ⭐ star the waitasecond package, [follow me on GitHub](https://git SigmaStamp logo - [Become a partner](https://www.pavolhejny.com/contact/) From 3fd164d14fe7e260a1dd1c92bb56311b8a6e01de Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Mon, 12 Sep 2022 09:19:17 +0000 Subject: [PATCH 6/6] Restyled by whitespace --- src/for/basic/forTimeInDay.ts | 1 - usage/TODO | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/for/basic/forTimeInDay.ts b/src/for/basic/forTimeInDay.ts index 4da22d0..d4c52f4 100644 --- a/src/for/basic/forTimeInDay.ts +++ b/src/for/basic/forTimeInDay.ts @@ -13,4 +13,3 @@ export async function forTimeInDay(fromTime: ITime, toTime: ITime): Promise