
Security News
New CNA Scorecard Tool Ranks CVE Data Quality Across the Ecosystem
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
@originjs/openharmony-webpack-plugin
Advanced tools
OpenHarmony Polyfill in Webpack.
npm install @originjs/openharmony-webpack-plugin
at {YOUR_SDK_PATH}\Sdk\ets\3.0.0.0\build-tools\ets-loader
Add the following to your webpack.config.js
: (at {YOUR_SDK_PATH}\Sdk\ets\3.0.0.0\build-tools\ets-loader
)
const OpenHarmonyPolyfillPlugin = require('@originjs/openharmony-webpack-plugin');
module.exports = {
// Other rules...
plugins: [
new OpenHarmonyPolyfillPlugin()
]
}
Buffer
process
crypto
fetch
XMLHttpRequest
TextDecoder
TextEncoder
URL
URLSearchParams
assert
buffer
crypto
domain
events
http
https
os
path
process
querystring
stream
url
util
fs
If you use these global API directly in ets
, it may appear an TS2304 error. eg.
ETS:ERROR File: examples\sdk7-demo\entry\src\main\ets\default\pages\textutil.ets:14:29
TS2304: Cannot find name 'TextDecoder'.
ETS:ERROR File: examples\sdk7-demo\entry\src\main\ets\default\pages\textutil.ets:31:29
TS2304: Cannot find name 'TextEncoder'.
ETS:ERROR File: examples\sdk7-demo\entry\src\main\ets\default\pages\textutil.ets:45:25
TS2304: Cannot find name 'URL'.
Solutions: Add import statements:
import { TextDecoder } from 'openharmony-polyfill';
import { TextEncoder } from 'openharmony-polyfill';
import { URL } from 'openharmony-polyfill';
FAQs
Unknown package
The npm package @originjs/openharmony-webpack-plugin receives a total of 0 weekly downloads. As such, @originjs/openharmony-webpack-plugin popularity was classified as not popular.
We found that @originjs/openharmony-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.