Installations
npm install @chialab/swc-types
Developer Guide
Typescript
No
Module System
ESM
Min. Node Version
>=13
Node Version
16.5.0
NPM Version
lerna/4.0.0/node@v16.5.0+x64 (darwin)
Releases
@chialab/wds-plugin-rna@0.16.1
Published on 08 Jun 2022
@chialab/wds-plugin-legacy@0.16.1
Published on 08 Jun 2022
@chialab/esbuild-plugin-require-resolve@0.16.1
Published on 08 Jun 2022
@chialab/wds-plugin-node-resolve@0.16.1
Published on 08 Jun 2022
@chialab/rna-bundler@0.16.0
Published on 08 Jun 2022
@chialab/rna-logger@0.16.0
Published on 08 Jun 2022
Contributors
Unable to fetch Contributors
Languages
JavaScript (98.68%)
HTML (0.83%)
Handlebars (0.26%)
TypeScript (0.19%)
CSS (0.02%)
SCSS (0.02%)
Developer
Download Statistics
Total Downloads
4,448
Last Day
1
Last Week
23
Last Month
43
Last Year
460
GitHub Statistics
175 Stars
1,379 Commits
21 Forks
2 Watching
5 Branches
9 Contributors
Bundle Size
35.00 kB
Minified
5.42 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.12.2
Package Id
@chialab/swc-types@0.12.2
Size
4.31 kB
NPM Version
lerna/4.0.0/node@v16.5.0+x64 (darwin)
Node Version
16.5.0
Publised On
01 Oct 2021
Total Downloads
Cumulative downloads
Total Downloads
4,448
Last day
0%
1
Compared to previous day
Last week
53.3%
23
Compared to previous week
Last month
72%
43
Compared to previous month
Last year
-57.6%
460
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
2
SWC Types • A babel/types-like set of helpers for swc.
⚠️ The development of this plugin has been suspended for maintenance reasons after an initial trial period. Developments will follow when the swc project will be more stable.
Install
1$ npm i @chialab/swc-types -D 2$ yarn add @chialab/swc-types -D
Usage
1import { t, Visitor } from '@chialab/swc-types'; 2 3export class ConsoleVisitor extends Visitor { 4 visitCallExpression(e: CallExpression): Expression { 5 if (!t.isMemberExpression(e.callee)) { 6 return e; 7 } 8 9 if (t.isIdentifier(e.callee.object) && e.callee.object.value === 'console') { 10 if (t.isIdentifier(e.callee.property)) { 11 return t.unaryExpression('void', t.numericLiteral(0)); 12 } 13 } 14 15 return e; 16 } 17}
License
SWC Types is released under the MIT license.
No vulnerabilities found.
Reason
18 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
no binaries found in the repo
Reason
SAST tool detected but not run on all commits
Details
- Info: SAST configuration detected: CodeQL
- Warn: 10 commits out of 23 are checked with a SAST tool
Reason
4 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
Reason
Found 1/11 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29
- Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Warn: no topLevel permission defined: .github/workflows/pages.yml:1
- Warn: no topLevel permission defined: .github/workflows/pr.yml:1
- Info: no jobLevel write permissions found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/codeql-analysis.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/codeql-analysis.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/codeql-analysis.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:78: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/main.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:90: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:103: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:106: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:111: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/main.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:121: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pages.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/pages.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pages.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/pages.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pages.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/pages.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pages.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/pages.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pages.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/pages.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/pr.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr.yml:88: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/chialab/rna/pr.yml/main?enable=pin
- Info: 0 out of 27 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 3 third-party GitHubAction dependencies pinned
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Score
5
/10
Last Scanned on 2025-01-06
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More