mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2025-12-12 07:50:42 -07:00
Update node_modules
This commit is contained in:
5
node_modules/collect-v8-coverage/CHANGELOG.md
generated
vendored
Normal file
5
node_modules/collect-v8-coverage/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
# 1.0.0 (2019-12-16)
|
||||
|
||||
### Features
|
||||
|
||||
- initial commit ([57e2041](https://github.com/SimenB/collect-v8-coverage/commit/57e20413f385d7730c5684b1852c14777583807e))
|
||||
22
node_modules/collect-v8-coverage/LICENSE
generated
vendored
Normal file
22
node_modules/collect-v8-coverage/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019 Simen Bekkhus
|
||||
|
||||
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.
|
||||
15
node_modules/collect-v8-coverage/README.md
generated
vendored
Normal file
15
node_modules/collect-v8-coverage/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# collect-v8-coverage
|
||||
|
||||
Use this module to start and stop the V8 inspector manually and collect precise coverage.
|
||||
|
||||
```js
|
||||
const {CoverageInstrumenter} = require('collect-v8-coverage');
|
||||
|
||||
const instrumenter = new CoverageInstrumenter();
|
||||
|
||||
await instrumenter.startInstrumenting();
|
||||
|
||||
// require some modules, run some code
|
||||
|
||||
const coverage = await instrumenter.stopInstrumenting();
|
||||
```
|
||||
7
node_modules/collect-v8-coverage/index.d.ts
generated
vendored
Normal file
7
node_modules/collect-v8-coverage/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/// <reference types="node" />
|
||||
import { Profiler } from 'inspector';
|
||||
export declare type V8Coverage = ReadonlyArray<Profiler.ScriptCoverage>;
|
||||
export declare class CoverageInstrumenter {
|
||||
startInstrumenting(): Promise<void>;
|
||||
stopInstrumenting(): Promise<V8Coverage>;
|
||||
}
|
||||
37
node_modules/collect-v8-coverage/index.js
generated
vendored
Normal file
37
node_modules/collect-v8-coverage/index.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
'use strict';
|
||||
|
||||
const { Session } = require('inspector');
|
||||
const { promisify } = require('util');
|
||||
|
||||
class CoverageInstrumenter {
|
||||
constructor() {
|
||||
this.session = new Session();
|
||||
|
||||
this.postSession = promisify(this.session.post.bind(this.session));
|
||||
}
|
||||
|
||||
async startInstrumenting() {
|
||||
this.session.connect();
|
||||
|
||||
await this.postSession('Profiler.enable');
|
||||
|
||||
await this.postSession('Profiler.startPreciseCoverage', {
|
||||
callCount: true,
|
||||
detailed: true,
|
||||
});
|
||||
}
|
||||
|
||||
async stopInstrumenting() {
|
||||
const {result} = await this.postSession(
|
||||
'Profiler.takePreciseCoverage',
|
||||
);
|
||||
|
||||
await this.postSession('Profiler.stopPreciseCoverage');
|
||||
|
||||
await this.postSession('Profiler.disable');
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports.CoverageInstrumenter = CoverageInstrumenter;
|
||||
80
node_modules/collect-v8-coverage/package.json
generated
vendored
Normal file
80
node_modules/collect-v8-coverage/package.json
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"_from": "collect-v8-coverage@^1.0.0",
|
||||
"_id": "collect-v8-coverage@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-VKIhJgvk8E1W28m5avZ2Gv2Ruv5YiF56ug2oclvaG9md69BuZImMG2sk9g7QNKLUbtYAKQjXjYxbYZVUlMMKmQ==",
|
||||
"_location": "/collect-v8-coverage",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "collect-v8-coverage@^1.0.0",
|
||||
"name": "collect-v8-coverage",
|
||||
"escapedName": "collect-v8-coverage",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@jest/test-result",
|
||||
"/jest-runtime"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.0.tgz",
|
||||
"_shasum": "150ee634ac3650b71d9c985eb7f608942334feb1",
|
||||
"_spec": "collect-v8-coverage@^1.0.0",
|
||||
"_where": "/home/runner/work/ghaction-upx/ghaction-upx/node_modules/jest-runtime",
|
||||
"bundleDependencies": false,
|
||||
"commitlint": {
|
||||
"extends": [
|
||||
"@commitlint/config-conventional"
|
||||
]
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Use this module to start and stop the V8 inspector manually and collect precise coverage.",
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^8.2.0",
|
||||
"@commitlint/config-conventional": "^8.2.0",
|
||||
"@semantic-release/changelog": "^3.0.6",
|
||||
"@semantic-release/git": "^7.0.18",
|
||||
"husky": "^3.0.9",
|
||||
"lint-staged": "^9.4.2",
|
||||
"prettier": "^1.19.1",
|
||||
"semantic-release": "^15.13.31"
|
||||
},
|
||||
"files": [
|
||||
"CHANGELOG.md",
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
"lint-staged": {
|
||||
"*.{js,ts,md,json}": [
|
||||
"prettier --write",
|
||||
"git add"
|
||||
]
|
||||
},
|
||||
"main": "index.js",
|
||||
"name": "collect-v8-coverage",
|
||||
"prettier": {
|
||||
"singleQuote": true,
|
||||
"trailingComma": "all"
|
||||
},
|
||||
"release": {
|
||||
"plugins": [
|
||||
"@semantic-release/commit-analyzer",
|
||||
"@semantic-release/release-notes-generator",
|
||||
"@semantic-release/changelog",
|
||||
"@semantic-release/npm",
|
||||
"@semantic-release/git",
|
||||
"@semantic-release/github"
|
||||
]
|
||||
},
|
||||
"types": "index.d.ts",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
Reference in New Issue
Block a user