Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
AssemblyScript loader for webpack (⚠️ In development ⚠️)
This loader requires minimum AssemblyScript 0.18, Node.js 8 and webpack 4 (webpack 5 support will be implemented soon)
# with npm
npm install --save-dev as-loader
# with yarn
yarn add --dev as-loader
The minimal webpack config:
// webpack.config.js
module.exports = {
entry: "src/index.ts",
resolve: {
extensions: [".ts", ".js"],
},
module: {
rules: [
{
test: /\.ts$/,
include: path.resolve(__dirname, "src/assembly"),
loader: "as-loader",
},
{
test: /\.ts$/,
exclude: path.resolve(__dirname, "src/assembly"),
loader: "ts-loader",
},
],
},
};
// myModule becomes an URL to the .wasm file
// (TypeScript doesn't know that, so we can still use the import type)
import * as myModule from "./assembly/myModule";
// this example uses @assemblyscript/loader, but you can use
// any loader, like as-bind or WebAssembly API
import { instantiateStreaming } from "@assemblyscript/loader";
async function loadAndRun() {
// load module using @assemblyscript/loader
const module = await instantiateStreaming<typeof myModule>(
// workaround for TypeScript
fetch((myModule as unknown) as string)
);
module.exports.myFunction(100);
}
loadAndRun();
TODO
FAQs
AssemblyScript loader for webpack
The npm package as-loader receives a total of 8 weekly downloads. As such, as-loader popularity was classified as not popular.
We found that as-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.