New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

swc-plugin-coverage-instrument

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swc-plugin-coverage-instrument - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

17

package.json
{
"name": "swc-plugin-coverage-instrument",
"version": "0.0.3",
"version": "0.0.4",
"description": "SWC coverage instrumentation plugin",

@@ -24,3 +24,7 @@ "main": "./target/wasm32-wasi/release/swc_plugin_coverage.wasm",

},
"files": ["package.json", "README.md", "target/wasm32-wasi/release/swc_plugin_coverage.wasm"],
"files": [
"package.json",
"README.md",
"target/wasm32-wasi/release/swc_plugin_coverage.wasm"
],
"scripts": {

@@ -42,3 +46,8 @@ "prepublishOnly": "npm-run-all test && npm run build:plugin -- --release",

},
"keywords": ["SWC", "plugin", "istanbul", "coverage"],
"keywords": [
"SWC",
"plugin",
"istanbul",
"coverage"
],
"author": "OJ Kwon <kwon.ohjoong@gmail.com>",

@@ -53,3 +62,3 @@ "license": "MIT",

"@swc-node/register": "^1.4.2",
"@swc/core": "^1.2.171",
"@swc/core": "^1.2.177",
"@taplo/cli": "^0.3.2",

@@ -56,0 +65,0 @@ "@types/chai": "^4.3.0",

@@ -7,3 +7,3 @@ # SWC-coverage-instrument

This instrumentation will generate a data struct mimics istanbuljs's `FileCoverage` [object] (https://github.com/istanbuljs/istanbuljs/blob/c7693d4608979ab73ebb310e0a1647e2c51f31b6/packages/istanbul-lib-coverage/lib/file-coverage.js#L97=) conforms fixture test suite from istanbuljs itself.
This instrumentation will generate a data struct mimics istanbuljs's `FileCoverage` [object](https://github.com/istanbuljs/istanbuljs/blob/c7693d4608979ab73ebb310e0a1647e2c51f31b6/packages/istanbul-lib-coverage/lib/file-coverage.js#L97=) conforms fixture test suite from istanbuljs itself.

@@ -67,3 +67,3 @@ However, this doesn't mean instrumentation supports exact same [interfaces](https://github.com/istanbuljs/istanbuljs/blob/c7693d4608979ab73ebb310e0a1647e2c51f31b6/packages/istanbul-lib-instrument/src/source-coverage.js#L37=) surrounding coverage object as well as supporting exact same options. There are some fundamental differences between runtime, and ast visitor architecture between different compilers does not allow identical behavior. This package will try `best attempt` as possible.

let visitor = swc_coverage_instrument::create_coverage_instrumentation_visitor(
source_map: std::sync::Arc<SourceMapImpl>,
source_map: std::sync::Arc<SourceMapper>,
comments: C,

@@ -70,0 +70,0 @@ instrument_options: InstrumentOptions,

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc