Comments (2)
Update the below repeated as #42
Also, dependency https://github.com/sorensen/get-function-name.js is broken; it apparently results in these lines in the build:
var getFunctionName = function(fn) {
if (toString$1.call(fn) !== '[object Function]') return null
if (fn.name) return fn.name
var name = /^\s*function\s*([^\(]*)/im.exec(fn.toString())[1];
return name || 'anonymous'
};
This code does not deal with anonymous arrow function and does not even honor the fact that the RegExp::exec()
method may return null
on mismatch. Apart from that, the code above is fairly convoluted for what it does.
from loupe.
The release is available on:
Your semantic-release bot
from loupe.
Related Issues (16)
- Pass in a secondary object to display better info about the inspected value
- Offer to help HOT 4
- TODO for v2 Release HOT 4
- Time representation difference in Chai.js HOT 6
- Loupe doesn't work correctly for buffers HOT 2
- Return value for number 0 HOT 6
- broken dependency `get-function-name` HOT 2
- Handle circular references HOT 1
- Quote complex keys in objects HOT 1
- The automated release is failing 🚨 HOT 1
- IE9+ not supported since 4.3.5 because of loupe HOT 4
- inspect of Object with null prototype causes primitive value error
- Invalid Date object will throw a TypeError HOT 5
- add an option to render functions as their body HOT 5
- Package `loupe` seems to be an ES Module but shipped in a CommonJS package HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loupe.