inspect-js / has-symbols Goto Github PK
View Code? Open in Web Editor NEWDetermine if the JS environment has Symbol support. Supports spec, or shams.
License: MIT License
Determine if the JS environment has Symbol support. Supports spec, or shams.
License: MIT License
/test/shams/core-js.js line 11
return; should not be there
/test/shams/get-own-property-symbols.js line 11
return; should not be there
those syntax errors causing IDEs to highlight your package as faulty
๐จ Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! ๐ ๐๐จ ๐
Find out how to migrate to Snyk at greenkeeper.io
5.0.0
to 5.0.1
.๐จ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
tape is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 16 commits.
ce9a282
v5.0.1
b7af113
Merge tag 'v4.13.3'
a861230
v4.13.3
9676a21
[Dev Deps] update eslint
, falafel
, js-yaml
8887189
[Deps] update minimist
, resolve
fb94836
[Fix] createStream
: result
payload is not always an object
582fe00
[Fix] createStream
: result
payload is not always an object (#519)
c421eb3
[Dev Deps] update eslint
751e592
[Fix] Update RegExp for matching stack frames to handle Promise/then scenario (#516)
470e43b
[Fix] Update RegExp for matching stack frames to handle Promise/then scenario
33712e2
[readme] add tape-repeater
(#511)
0b5804d
[readme] add tape-repeater
9b87675
[examples] add ecstatic
bc1334b
[readme] Add link to tape-player (in-process reporter) (#496)
6326dc6
[Docs] add an optional emoji version for tap-spec consumer (#501)
There are 16 commits in total.
See the full diff
There is a collection of frequently asked questions. If those donโt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot ๐ด
in the source code
var origSymbol = global.Symbol;
i think this one better
var origSymbol = global && global.Symbol;
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
Hello,
I use vuepress (Vuejs) that use library using has-symbols, an error occured:
global is not defined
in the library script
'use strict';
// V Error is throw next line V
var origSymbol = global.Symbol;
var hasSymbolSham = require('./shams');
module.exports = function hasNativeSymbols() {
if (typeof origSymbol !== 'function') { return false; }
if (typeof Symbol !== 'function') { return false; }
if (typeof origSymbol('foo') !== 'symbol') { return false; }
if (typeof Symbol('bar') !== 'symbol') { return false; }
return hasSymbolSham();
};
So to correct it, I add in my scripts
window.global = window
I see that this error is throwed with angular also, so it looks that more and more framework doesn't support global ๐
Can you add a check on window.global to avoid create an error when it isn't define ?
Just emit a default value when not defined ?
Thank you ๐ ๐
Have a nice day and be happy !
Kรฉvin
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Warning
These dependencies are deprecated:
Datasource | Name | Replacement PR? |
---|---|---|
npm | aud |
These branches will be created by Renovate only once you click their checkbox below.
codecov/codecov-action
, eslint
)aud
to v3core-js
to v3eslint
to v9nyc
to v17.github/workflows/node-10-11.yml
actions/checkout v4
codecov/codecov-action v3.1.5
actions/checkout v4
codecov/codecov-action v3.1.5
.github/workflows/node-12-13.yml
actions/checkout v4
codecov/codecov-action v3.1.5
actions/checkout v4
codecov/codecov-action v3.1.5
.github/workflows/node-14-15.yml
actions/checkout v4
codecov/codecov-action v3.1.5
actions/checkout v4
codecov/codecov-action v3.1.5
.github/workflows/node-4-6.yml
actions/checkout v4
codecov/codecov-action v3.1.5
actions/checkout v4
codecov/codecov-action v3.1.5
.github/workflows/node-7-9.yml
actions/checkout v4
codecov/codecov-action v3.1.5
actions/checkout v4
codecov/codecov-action v3.1.5
.github/workflows/node-iojs.yml
actions/checkout v4
codecov/codecov-action v3.1.5
actions/checkout v4
codecov/codecov-action v3.1.5
.github/workflows/node-pretest.yml
.github/workflows/node-zero.yml
actions/checkout v4
codecov/codecov-action v3.1.5
actions/checkout v4
codecov/codecov-action v3.1.5
.github/workflows/rebase.yml
.github/workflows/require-allow-edits.yml
package.json
@ljharb/eslint-config ^21.1.1
aud ^2.0.5
auto-changelog ^2.4.0
core-js ^2.6.12
eslint =8.8.0
get-own-property-symbols ^0.9.5
in-publish ^2.0.1
npmignore ^0.3.1
nyc ^10.3.2
safe-publish-latest ^2.0.0
tape ^5.8.1
node >= 0.4
๐จ You need to enable Continuous Integration on Greenkeeper branches of this repository. ๐จ
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didnโt receive a CI status on the greenkeeper/initial
branch, itโs possible that you donโt have CI set up yet.
We recommend using:
If you have already set up a CI for this repository, you might need to check how itโs configured. Make sure it is set to run on all new branches. If you donโt want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, youโll need to re-trigger Greenkeeperโs initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.
Angular CLI no longer supports global shims as of 6.x. Therefore this module will break projects which use it:
Line 3 in aa57a17
See also: ljharb/es-abstract#59 and angular/angular-cli#9827 (comment)
I'm using babel to build my code but it's crashing with an error -
SyntaxError: node_modules/has-symbols/test/shams/core-js.js: 'return' outside of function (11:1)
9 | t.end();
10 | });
> 11 | return;
| ^
12 | }
13 |
14 | var hasSymbols = require('../../shams');
Any way I can resolve this?
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: Cannot find preset's package (github>whitesource/merge-confidence:beta)
โ๏ธ Important announcement: Greenkeeper will be saying goodbye ๐ and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io
1.16.2
to 1.16.3
.๐จ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
auto-changelog is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 4 commits.
b2f3c98
1.16.3
1ced7a8
Bump packages
107445f
Add FUNDING.yml
a8da4cd
Bump handlebars from 4.1.2 to 4.3.0 (#147)
See the full diff
There is a collection of frequently asked questions. If those donโt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot ๐ด
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.