isaacs / core-util-is Goto Github PK
View Code? Open in Web Editor NEWThe util.is* functions from Node core
License: MIT License
The util.is* functions from Node core
License: MIT License
Hello,
Could you please specify what is the license type?
Thanks,
-- Tito
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
util.js:35
var str = String(f).replace(formatRegExp, function(x) {
^
RangeError: Maximum call stack size exceeded
Line 103 in a177da2
This references to Buffer makes this library incompatible in the browser because Buffer is part of the node API and is not available in the browser. Given that this library is imported by several other libraries that aim to make use of it in the browser, would you ever consider removing this reference?
Later versions of Angular (6+) have tightened their compile-time requirements to alert node-specific references like this which is why these issues are being surfaced now.
@isaacs I'm using cheerio
in React Native, which depends on this package. Unfortunately it throws an error because Buffer is undefined until the entry point index.js
of the app (via feross/buffer
), at which point this module has already been imported.
Would you be interested in a PR to support this use case? The relevant change is fairly simple: mjmasn@a559d4e
I published a scoped package with the fix but ideally would be able to use the official package. Any thoughts?
It looks like the API has been "Deprecated since: v4.0.0" from Node.
A list of all the exported functions would be great for a start.
I'd be happy to help you with this.
Thanks.
What's with this patch file?
https://github.com/isaacs/core-util-is/blob/master/float.patch
There is a log from appveyor:
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! path C:\Users\appveyor\AppData\Roaming\npm-cache\core-util-is\1.0.1\package\package.json
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! Error: EPERM, rename 'C:\Users\appveyor\AppData\Roaming\npm-cache\core-util-is\1.0.1\package\package.json'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM, rename 'C:\Users\appveyor\AppData\Roaming\npm-cache\core-util-is\1.0.1\package\package.json']
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! path: 'C:\\Users\\appveyor\\AppData\\Roaming\\npm-cache\\core-util-is\\1.0.1\\package\\package.json',
npm ERR! parent: 'readable-stream' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\projects\tars\npm-debug.log
Looks like the files
property (https://docs.npmjs.com/files/package.json#files) is not used in package.json
to specify the included files, nor is the .npmignore
file (https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package) is being used for blacklisting unwanted files, for the package published to npm.
Would you consider adding either the files
property or the .npmignore
file, so that the resulting package file would have smaller size?
The current size can be seen when executing the command npm pack
(https://docs.npmjs.com/cli/pack).
This issue was create via tawata
Hi,
I got this error when i try to intall this module by npm install.
npm ERR! Error: ENOENT, open '/Users/mitsuishihidemi/idea/artifacts/ui_war_exploded/v3/node_modules/core-util-is/package.json'
can someone help me?
thanks
I get the following in an angular v8 application. This was not in issue in earlier release (v8-)
Any ideas?
Uncaught ReferenceError: Buffer is not defined
at Object../node_modules/core-util-is/lib/util.js (util.js:103)
at __webpack_require__ (bootstrap:79)
at Object../node_modules/comment-json/src/array.js (array.js:2)
at __webpack_require__ (bootstrap:79)
at Object../node_modules/comment-json/src/parse.js (parse.js:14)
at __webpack_require__ (bootstrap:79)
at Object../node_modules/comment-json/src/index.js (index.js:1)
at __webpack_require__ (bootstrap:79)
at Module../src/app/services/customer.service.ts (customer-tag-type.service.ts:9)
at __webpack_require__ (bootstrap:79)
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.