lukeed / csprng Goto Github PK
View Code? Open in Web Editor NEWA tiny (~90B) isomorphic wrapper for `crypto.randomBytes` in Node.js and browsers.
License: MIT License
A tiny (~90B) isomorphic wrapper for `crypto.randomBytes` in Node.js and browsers.
License: MIT License
... I accidentally published this module as "crpyto.random" ...
As soon as I realized, I tried to unpublish it, fix the name, then republish – but now I get that infamous "Package names are too similar" error.
Currently awaiting a response from npm support. Hoping that they can help me undo my silly mistake 😅 🙏
Hey folks, we’re getting an error when building for umd with Webpack since adding an npm module that relies on this one:
ERROR in ./node_modules/@lukeed/csprng/node/index.mjs 4:8-19
Can't import the named export 'randomBytes' from non EcmaScript module (only default export is available)
@ ./node_modules/@lukeed/uuid/secure/index.js
@ ./node_modules/@itly/plugin-iteratively/dist/esm/index.js
@ ./src/lib/analytics/itly/index.ts
@ ./src/lib/analytics/index.js
Here’s the relevant part of our webpack config for the output:
{
target: 'node',
output: {
path: path.resolve(__dirname, '../dist/server'),
filename: 'index.js',
library: 'SnykFrontendComponents',
libraryTarget: 'umd',
}
}
Any advice on how we can restore our build whilst using this module?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.