@blackglory/go
Advanced tools
Comparing version
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
{ | ||
"name": "@blackglory/go", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "", | ||
@@ -17,2 +17,4 @@ "keywords": [], | ||
"lint": "eslint --ext .js,.jsx,.ts,.tsx --quiet src", | ||
"test": "jest --config jest.config.js", | ||
"test:coverage": "jest --coverage --config jest.config.js", | ||
"prepublishOnly": "run-s clean build bundle", | ||
@@ -34,3 +36,3 @@ "clean": "run-p clean:*", | ||
"hooks": { | ||
"pre-commit": "run-s lint build", | ||
"pre-commit": "run-s lint build test", | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
@@ -40,23 +42,32 @@ } | ||
"devDependencies": { | ||
"@commitlint/cli": "^16.2.1", | ||
"@commitlint/config-conventional": "^16.2.1", | ||
"@rollup/plugin-commonjs": "^21.0.2", | ||
"@blackglory/jest-matchers": "^0.4.1", | ||
"@commitlint/cli": "^17.0.2", | ||
"@commitlint/config-conventional": "^17.0.2", | ||
"@rollup/plugin-commonjs": "^22.0.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@rollup/plugin-replace": "^4.0.0", | ||
"@rollup/plugin-typescript": "^8.3.1", | ||
"@typescript-eslint/eslint-plugin": "^5.13.0", | ||
"@typescript-eslint/parser": "^5.13.0", | ||
"eslint": "^8.10.0", | ||
"@rollup/plugin-typescript": "^8.3.2", | ||
"@types/jest": "^28.1.1", | ||
"@typescript-eslint/eslint-plugin": "^5.27.1", | ||
"@typescript-eslint/parser": "^5.27.1", | ||
"eslint": "^8.17.0", | ||
"husky": "4", | ||
"jest": "^28.1.1", | ||
"npm-run-all": "^4.1.5", | ||
"return-style": "^1.0.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.69.1", | ||
"rollup": "^2.75.6", | ||
"rollup-plugin-analyzer": "^4.0.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"standard-version": "^9.3.2", | ||
"standard-version": "^9.5.0", | ||
"ts-jest": "^28.0.4", | ||
"tscpaths": "^0.0.9", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.5.2" | ||
"tslib": "^2.4.0", | ||
"typescript": "^4.7.3" | ||
}, | ||
"dependencies": { | ||
"extra-timers": "^0.2.5", | ||
"justypes": "^2.0.0" | ||
} | ||
} |
@@ -45,1 +45,11 @@ # go | ||
``` | ||
### goMicrotask | ||
```ts | ||
function goMicrotask<T>(fn: () => Awaitable<T>): Promise<T> | ||
``` | ||
### goMarcotask | ||
```ts | ||
function goMarcotask<T>(fn: () => Awaitable<T>): Promise<T> | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
16395
63.72%43
38.71%188
113.64%55
22.22%2
Infinity%25
25%+ Added
+ Added
+ Added
+ Added
+ Added