Remove react-styleguidist
Co-authored-by: Sidney Keese <sidney@carbonfive.com>
This commit is contained in:
parent
8d5e832ed6
commit
e9cf5ba67c
11 changed files with 188 additions and 3050 deletions
|
@ -39,7 +39,6 @@
|
|||
"transpile": "tsc",
|
||||
"clean-transpile": "rimraf ts/**/*.js && rimraf ts/*.js",
|
||||
"open-coverage": "open coverage/lcov-report/index.html",
|
||||
"styleguide": "styleguidist server",
|
||||
"ready": "yarn clean-transpile && yarn grunt && yarn lint && yarn test-node && yarn test-electron && yarn lint-deps",
|
||||
"dev": "run-p --print-label dev:*",
|
||||
"dev:grunt": "yarn grunt dev",
|
||||
|
@ -238,7 +237,6 @@
|
|||
"patch-package": "6.1.2",
|
||||
"prettier": "1.19.1",
|
||||
"react-docgen-typescript": "1.2.6",
|
||||
"react-styleguidist": "7.0.1",
|
||||
"sass-loader": "7.2.0",
|
||||
"sinon": "4.4.2",
|
||||
"snyk": "1.316.1",
|
||||
|
|
|
@ -1,109 +0,0 @@
|
|||
const path = require('path');
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
const typescriptSupport = require('react-docgen-typescript');
|
||||
|
||||
const propsParser = typescriptSupport.withCustomConfig('./tsconfig.json').parse;
|
||||
|
||||
module.exports = {
|
||||
sections: [
|
||||
{
|
||||
name: 'Components',
|
||||
description: '',
|
||||
components: 'ts/components/[^_]*.tsx',
|
||||
ignore: ['**/*.stories.*'],
|
||||
},
|
||||
{
|
||||
name: 'Conversation',
|
||||
description: 'Everything necessary to render a conversation',
|
||||
components: 'ts/components/conversation/[^_]*.tsx',
|
||||
ignore: ['**/*.stories.*'],
|
||||
},
|
||||
{
|
||||
name: 'Emoji',
|
||||
description: 'All components related to emojis',
|
||||
components: 'ts/components/emoji/[^_]*.tsx',
|
||||
ignore: ['**/*.stories.*'],
|
||||
},
|
||||
{
|
||||
name: 'Media Gallery',
|
||||
description: 'Display media and documents in a conversation',
|
||||
components: 'ts/components/conversation/media-gallery/[^_]*.tsx',
|
||||
ignore: ['**/*.stories.*'],
|
||||
},
|
||||
{
|
||||
name: 'Stickers',
|
||||
description: 'All components related to stickers',
|
||||
components: 'ts/components/stickers/[^_]*.tsx',
|
||||
ignore: ['**/*.stories.*'],
|
||||
},
|
||||
{
|
||||
name: 'Utility',
|
||||
description: 'Utility components used across the application',
|
||||
components: 'ts/components/utility/[^_]*.tsx',
|
||||
ignore: ['**/*.stories.*'],
|
||||
},
|
||||
{
|
||||
name: 'Test',
|
||||
description: 'Components only used for testing',
|
||||
components: 'ts/styleguide/**/*.tsx',
|
||||
ignore: ['**/*.stories.*'],
|
||||
},
|
||||
],
|
||||
context: {
|
||||
// Exposes necessary utilities in the global scope for all readme code snippets
|
||||
util: 'ts/styleguide/StyleGuideUtil',
|
||||
},
|
||||
contextDependencies: [path.join(__dirname, 'ts/styleguide')],
|
||||
// We don't want one long, single page
|
||||
pagePerSection: true,
|
||||
// Expose entire repository to the styleguidist server, primarily for stylesheets
|
||||
assetsDir: './',
|
||||
// Add top-level elements to the HTML:
|
||||
// docs: https://github.com/vxna/mini-html-webpack-template
|
||||
// https://react-styleguidist.js.org/docs/configuration.html#template
|
||||
template: {
|
||||
head: {
|
||||
links: [
|
||||
{
|
||||
rel: 'stylesheet',
|
||||
type: 'text/css',
|
||||
href: '/node_modules/sanitize.css/sanitize.css',
|
||||
},
|
||||
{
|
||||
rel: 'stylesheet',
|
||||
type: 'text/css',
|
||||
href: '/stylesheets/manifest.css',
|
||||
},
|
||||
{
|
||||
rel: 'stylesheet',
|
||||
type: 'text/css',
|
||||
href: '/node_modules/draft-js/dist/Draft.css',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
propsParser,
|
||||
webpackConfig: {
|
||||
devtool: 'source-map',
|
||||
|
||||
resolve: {
|
||||
// Necessary to enable the absolute path used in the context option above
|
||||
modules: [__dirname, path.join(__dirname, 'node_modules')],
|
||||
extensions: ['.tsx'],
|
||||
},
|
||||
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
loader: 'ts-loader',
|
||||
},
|
||||
{
|
||||
// To test handling of attachments, we need arraybuffers in memory
|
||||
test: /\.(gif|mp3|mp4|txt|jpg|jpeg|png|webp)$/,
|
||||
loader: 'arraybuffer-loader',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
|
@ -1,7 +0,0 @@
|
|||
The simplest example of using the `<ConversationContext />` component:
|
||||
|
||||
```jsx
|
||||
<util.ConversationContext theme={util.theme}>
|
||||
<div>Just a plain bit of text</div>
|
||||
</util.ConversationContext>
|
||||
```
|
|
@ -1,38 +0,0 @@
|
|||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
|
||||
interface Props {
|
||||
/**
|
||||
* Corresponds to the theme setting in the app, and the class added to the root element.
|
||||
*/
|
||||
ios: boolean;
|
||||
theme: 'light-theme' | 'dark-theme';
|
||||
mode: 'mouse-mode' | 'keyboard-mode';
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides the parent elements necessary to allow the main Signal Desktop stylesheet to
|
||||
* apply (with no changes) to messages in the Style Guide.
|
||||
*/
|
||||
export class ConversationContext extends React.Component<Props> {
|
||||
public render() {
|
||||
const { ios, theme, mode } = this.props;
|
||||
|
||||
return (
|
||||
<div
|
||||
className={classNames(
|
||||
theme || 'light-theme',
|
||||
ios ? 'ios-theme' : null,
|
||||
mode
|
||||
)}
|
||||
style={{
|
||||
backgroundColor: theme === 'dark-theme' ? 'black' : undefined,
|
||||
}}
|
||||
>
|
||||
<div className="timeline-placeholder">
|
||||
<div className="timeline-wrapper">{this.props.children}</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
|
||||
interface Props {
|
||||
/**
|
||||
* Corresponds to the theme setting in the app, and the class added to the root element.
|
||||
*/
|
||||
theme: 'light-theme' | 'dark-theme';
|
||||
style: any;
|
||||
gutterStyle: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides the parent elements necessary to allow the main Signal Desktop stylesheet to
|
||||
* apply (with no changes) to messages in the Style Guide.
|
||||
*/
|
||||
export class LeftPaneContext extends React.Component<Props> {
|
||||
public render() {
|
||||
const { gutterStyle, style, theme } = this.props;
|
||||
|
||||
return (
|
||||
<div style={style} className={classNames(theme || 'light-theme')}>
|
||||
<div className="gutter" style={gutterStyle}>
|
||||
{this.props.children}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
|
@ -1,148 +0,0 @@
|
|||
import QueryString from 'qs';
|
||||
import classNames from 'classnames';
|
||||
|
||||
// This file provides helpers for the Style Guide, exposed at 'util' in the global scope
|
||||
// via the 'context' option in react-styleguidist.
|
||||
|
||||
import { default as _ } from 'lodash';
|
||||
export { ConversationContext } from './ConversationContext';
|
||||
export { LeftPaneContext } from './LeftPaneContext';
|
||||
|
||||
export { _, classNames };
|
||||
|
||||
// TypeScript wants two things when you import:
|
||||
// 1) a normal typescript file
|
||||
// 2) a javascript file with type definitions
|
||||
// Anything else will raise an error, that it can't find the module. And so, we ignore...
|
||||
|
||||
// @ts-ignore
|
||||
import gif from '../../fixtures/giphy-GVNvOUpeYmI7e.gif';
|
||||
// 320x240
|
||||
const gifObjectUrl = makeObjectUrl(gif, 'image/gif');
|
||||
// @ts-ignore
|
||||
import mp3 from '../../fixtures/incompetech-com-Agnus-Dei-X.mp3';
|
||||
const mp3ObjectUrl = makeObjectUrl(mp3, 'audio/mp3');
|
||||
// @ts-ignore
|
||||
import txt from '../../fixtures/lorem-ipsum.txt';
|
||||
const txtObjectUrl = makeObjectUrl(txt, 'text/plain');
|
||||
// @ts-ignore
|
||||
import mp4 from '../../fixtures/pixabay-Soap-Bubble-7141.mp4';
|
||||
const mp4ObjectUrl = makeObjectUrl(mp4, 'video/mp4');
|
||||
// @ts-ignore
|
||||
import mp4v2 from '../../fixtures/ghost-kitty.mp4';
|
||||
const mp4ObjectUrlV2 = makeObjectUrl(mp4v2, 'video/mp4');
|
||||
// @ts-ignore
|
||||
import png from '../../fixtures/freepngs-2cd43b_bed7d1327e88454487397574d87b64dc_mv2.png';
|
||||
// 800×1200
|
||||
const pngObjectUrl = makeObjectUrl(png, 'image/png');
|
||||
|
||||
// @ts-ignore
|
||||
import landscape from '../../fixtures/koushik-chowdavarapu-105425-unsplash.jpg';
|
||||
// 800×1200
|
||||
const landscapeObjectUrl = makeObjectUrl(landscape, 'image/png');
|
||||
|
||||
// @ts-ignore
|
||||
import squareSticker from '../../fixtures/512x515-thumbs-up-lincoln.webp';
|
||||
const squareStickerObjectUrl = makeObjectUrl(squareSticker, 'image/webp');
|
||||
|
||||
// @ts-ignore
|
||||
import landscapeGreen from '../../fixtures/1000x50-green.jpeg';
|
||||
const landscapeGreenObjectUrl = makeObjectUrl(landscapeGreen, 'image/jpeg');
|
||||
// @ts-ignore
|
||||
import landscapePurple from '../../fixtures/200x50-purple.png';
|
||||
const landscapePurpleObjectUrl = makeObjectUrl(landscapePurple, 'image/png');
|
||||
// @ts-ignore
|
||||
import portraitYellow from '../../fixtures/20x200-yellow.png';
|
||||
const portraitYellowObjectUrl = makeObjectUrl(portraitYellow, 'image/png');
|
||||
// @ts-ignore
|
||||
import landscapeRed from '../../fixtures/300x1-red.jpeg';
|
||||
const landscapeRedObjectUrl = makeObjectUrl(landscapeRed, 'image/png');
|
||||
// @ts-ignore
|
||||
import portraitTeal from '../../fixtures/50x1000-teal.jpeg';
|
||||
const portraitTealObjectUrl = makeObjectUrl(portraitTeal, 'image/png');
|
||||
|
||||
// @ts-ignore
|
||||
import kitten164 from '../../fixtures/kitten-1-64-64.jpg';
|
||||
const kitten164ObjectUrl = makeObjectUrl(kitten164, 'image/jpeg');
|
||||
// @ts-ignore
|
||||
import kitten264 from '../../fixtures/kitten-2-64-64.jpg';
|
||||
const kitten264ObjectUrl = makeObjectUrl(kitten264, 'image/jpeg');
|
||||
// @ts-ignore
|
||||
import kitten364 from '../../fixtures/kitten-3-64-64.jpg';
|
||||
const kitten364ObjectUrl = makeObjectUrl(kitten364, 'image/jpeg');
|
||||
|
||||
function makeObjectUrl(data: ArrayBuffer, contentType: string): string {
|
||||
const blob = new Blob([data], {
|
||||
type: contentType,
|
||||
});
|
||||
|
||||
return URL.createObjectURL(blob);
|
||||
}
|
||||
|
||||
export {
|
||||
kitten164,
|
||||
kitten164ObjectUrl,
|
||||
kitten264,
|
||||
kitten264ObjectUrl,
|
||||
kitten364,
|
||||
kitten364ObjectUrl,
|
||||
mp3,
|
||||
mp3ObjectUrl,
|
||||
gif,
|
||||
gifObjectUrl,
|
||||
mp4,
|
||||
mp4ObjectUrl,
|
||||
mp4v2,
|
||||
mp4ObjectUrlV2,
|
||||
png,
|
||||
pngObjectUrl,
|
||||
squareSticker,
|
||||
squareStickerObjectUrl,
|
||||
txt,
|
||||
txtObjectUrl,
|
||||
landscape,
|
||||
landscapeObjectUrl,
|
||||
landscapeGreen,
|
||||
landscapeGreenObjectUrl,
|
||||
landscapePurple,
|
||||
landscapePurpleObjectUrl,
|
||||
portraitYellow,
|
||||
portraitYellowObjectUrl,
|
||||
landscapeRed,
|
||||
landscapeRedObjectUrl,
|
||||
portraitTeal,
|
||||
portraitTealObjectUrl,
|
||||
};
|
||||
|
||||
const query = window.location.search.replace(/^\?/, '');
|
||||
const urlOptions = QueryString.parse(query);
|
||||
const theme = urlOptions.theme || 'light-theme';
|
||||
const ios = urlOptions.ios || false;
|
||||
const locale = urlOptions.locale || 'en';
|
||||
const mode = urlOptions.mode || 'mouse-mode';
|
||||
|
||||
// @ts-ignore
|
||||
import localeMessages from '../../_locales/en/messages.json';
|
||||
|
||||
// @ts-ignore
|
||||
import { setup } from '../../js/modules/i18n';
|
||||
const i18n = setup(locale, localeMessages);
|
||||
|
||||
export { theme, ios, locale, mode, i18n };
|
||||
|
||||
// @ts-ignore
|
||||
window.getInteractionMode = () => mode;
|
||||
|
||||
// Telling Lodash to relinquish _ for use by underscore
|
||||
// @ts-ignore
|
||||
_.noConflict();
|
||||
|
||||
// @ts-ignore
|
||||
window.log = {
|
||||
// tslint:disable-next-line no-console
|
||||
info: console.log,
|
||||
// tslint:disable-next-line no-console
|
||||
error: console.error,
|
||||
// tslint:disable-next-line no-console
|
||||
warn: console.warn,
|
||||
};
|
|
@ -1,11 +0,0 @@
|
|||
{
|
||||
"defaultSeverity": "error",
|
||||
"extends": ["../../tslint.json"],
|
||||
"rules": {
|
||||
// To allow the use of devDependencies here
|
||||
"no-implicit-dependencies": false,
|
||||
|
||||
// All tests use arrow functions, and they can be long
|
||||
"max-func-body-length": false
|
||||
}
|
||||
}
|
|
@ -1388,6 +1388,22 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-04-30T20:57:04.499Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/websocket/node_modules/debug/src/node.js",
|
||||
"line": "function load() {",
|
||||
"lineNumber": 156,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-25T00:36:19.912Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/websocket/node_modules/debug/src/node.js",
|
||||
"line": "exports.enable(load());",
|
||||
"lineNumber": 248,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-25T00:36:19.912Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-insertBefore(",
|
||||
"path": "node_modules/ast-types/lib/path.js",
|
||||
|
@ -1796,736 +1812,13 @@
|
|||
"updated": "2018-09-19T21:59:32.770Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.core.js",
|
||||
"line": "function nodebackForPromise(promise, multiArgs) {",
|
||||
"lineNumber": 2099,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.core.js",
|
||||
"line": " } else if (!multiArgs) {",
|
||||
"lineNumber": 2106,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.core.js",
|
||||
"line": " var multiArgs = arguments.length > 1 ? !!Object(arguments[1]).multiArgs",
|
||||
"lineNumber": 2296,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.core.js",
|
||||
"line": " var result = tryCatch(fn)(nodebackForPromise(ret, multiArgs));",
|
||||
"lineNumber": 2298,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.core.js",
|
||||
"line": " util.toFastProperties(Promise); ",
|
||||
"lineNumber": 2856,
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/acorn/dist/acorn.js",
|
||||
"line": " // $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)",
|
||||
"lineNumber": 3119,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-03-22T19:15:12.445Z",
|
||||
"reasonDetail": "Promise is a known global"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.core.js",
|
||||
"line": "function toFastProperties(obj) {",
|
||||
"lineNumber": 3592,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-03-22T19:15:12.445Z",
|
||||
"reasonDetail": "Declaring a dangerous function"
|
||||
},
|
||||
{
|
||||
"rule": "eval",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.core.js",
|
||||
"line": " eval(obj);",
|
||||
"lineNumber": 3599,
|
||||
"reasonCategory": "ruleNeeded",
|
||||
"updated": "2019-03-22T19:00:07.131Z",
|
||||
"reasonDetail": "his is run on whatever is provided to toFastProperties()"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.core.js",
|
||||
"line": " toFastProperties: toFastProperties,",
|
||||
"lineNumber": 3752,
|
||||
"reasonCategory": "ruleNeeded",
|
||||
"updated": "2019-03-22T19:15:12.445Z",
|
||||
"reasonDetail": "Exposing a dangerous function"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.core.js",
|
||||
"line": "if (ret.isNode) ret.toFastProperties(process);",
|
||||
"lineNumber": 3775,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-03-22T19:15:12.445Z",
|
||||
"reasonDetail": "process is a known global"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.core.min.js",
|
||||
"lineNumber": 31,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-03-22T19:15:12.445Z",
|
||||
"reasonDetail": "It's usage of bluebird that's the problem, not bluebird itself with this rule"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.core.min.js",
|
||||
"lineNumber": 31,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " var spawn = new PromiseSpawn$(undefined, undefined, yieldHandler,",
|
||||
"lineNumber": 2228,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " this.constructor$(promises);",
|
||||
"lineNumber": 2441,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " this._init$(undefined, -2);",
|
||||
"lineNumber": 2456,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": "function nodebackForPromise(promise, multiArgs) {",
|
||||
"lineNumber": 2687,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " } else if (!multiArgs) {",
|
||||
"lineNumber": 2694,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " var multiArgs = arguments.length > 1 ? !!Object(arguments[1]).multiArgs",
|
||||
"lineNumber": 2944,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " var result = tryCatch(fn)(nodebackForPromise(ret, multiArgs));",
|
||||
"lineNumber": 2946,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " util.toFastProperties(Promise); ",
|
||||
"lineNumber": 3519,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-03-22T19:15:12.445Z",
|
||||
"reasonDetail": "Usage of bluebird is the problem with this rule, not bluebird itself"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": "function(callback, receiver, originalName, fn, _, multiArgs) {",
|
||||
"lineNumber": 3846,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " var nodeback = nodebackForPromise(promise, \" + multiArgs + \"); \\n\\",
|
||||
"lineNumber": 3897,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": "function makeNodePromisifiedClosure(callback, receiver, _, fn, __, multiArgs) {",
|
||||
"lineNumber": 3938,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " var fn = nodebackForPromise(promise, multiArgs);",
|
||||
"lineNumber": 3951,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": "function promisifyAll(obj, suffix, filter, promisifier, multiArgs) {",
|
||||
"lineNumber": 3968,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " makeNodePromisified(key, THIS, key, fn, suffix, multiArgs);",
|
||||
"lineNumber": 3979,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " fn, suffix, multiArgs);",
|
||||
"lineNumber": 3983,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " util.toFastProperties(obj);",
|
||||
"lineNumber": 3989,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-03-22T19:15:12.445Z",
|
||||
"reasonDetail": "promisifyAll calls toFastProperties() but is limited to function or object"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": "function promisify(callback, receiver, multiArgs) {",
|
||||
"lineNumber": 3993,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " callback, null, multiArgs);",
|
||||
"lineNumber": 3995,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " var multiArgs = !!options.multiArgs;",
|
||||
"lineNumber": 4007,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " var ret = promisify(fn, receiver, multiArgs);",
|
||||
"lineNumber": 4008,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " var multiArgs = !!options.multiArgs;",
|
||||
"lineNumber": 4018,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " multiArgs);",
|
||||
"lineNumber": 4036,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " promisifyAll(value, suffix, filter, promisifier, multiArgs);",
|
||||
"lineNumber": 4037,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " return promisifyAll(target, suffix, filter, promisifier, multiArgs);",
|
||||
"lineNumber": 4041,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " this.constructor$(entries);",
|
||||
"lineNumber": 4102,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " this._init$(undefined, isMap ? -6 : -3);",
|
||||
"lineNumber": 4104,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " this.constructor$(promises);",
|
||||
"lineNumber": 4305,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " this._init$(undefined, -5);",
|
||||
"lineNumber": 4322,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " this._resultCancelled$();",
|
||||
"lineNumber": 4360,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " this.constructor$(values);",
|
||||
"lineNumber": 4537,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " this.constructor$(values);",
|
||||
"lineNumber": 4586,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " this._init$(undefined, -5);",
|
||||
"lineNumber": 4601,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " this.constructor$(fn, promise, context);",
|
||||
"lineNumber": 5104,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": "function toFastProperties(obj) {",
|
||||
"lineNumber": 5434,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-03-22T19:15:12.445Z",
|
||||
"reasonDetail": "Declaring a dangerous function"
|
||||
},
|
||||
{
|
||||
"rule": "eval",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " eval(obj);",
|
||||
"lineNumber": 5441,
|
||||
"reasonCategory": "ruleNeeded",
|
||||
"updated": "2019-03-22T19:00:07.131Z",
|
||||
"reasonDetail": "This is run on whatever is provided to toFastProperties()"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": " toFastProperties: toFastProperties,",
|
||||
"lineNumber": 5594,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-03-22T19:15:12.445Z",
|
||||
"reasonDetail": "Exposing a dangerous function"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.js",
|
||||
"line": "if (ret.isNode) ret.toFastProperties(process);",
|
||||
"lineNumber": 5617,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-03-22T19:15:12.445Z",
|
||||
"reasonDetail": "process is a known global"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.min.js",
|
||||
"lineNumber": 30,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-03-22T19:15:12.445Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.min.js",
|
||||
"lineNumber": 30,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.min.js",
|
||||
"lineNumber": 30,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/browser/bluebird.min.js",
|
||||
"lineNumber": 31,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/assert.js",
|
||||
"line": " this.constructor$(a);",
|
||||
"lineNumber": 5,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/generators.js",
|
||||
"line": " var spawn = new PromiseSpawn$(undefined, undefined, yieldHandler,",
|
||||
"lineNumber": 197,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/map.js",
|
||||
"line": " this.constructor$(promises);",
|
||||
"lineNumber": 15,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/map.js",
|
||||
"line": " this._init$(undefined, -2);",
|
||||
"lineNumber": 30,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/nodeback.js",
|
||||
"line": "function nodebackForPromise(promise, multiArgs) {",
|
||||
"lineNumber": 34,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/nodeback.js",
|
||||
"line": " } else if (!multiArgs) {",
|
||||
"lineNumber": 41,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promise.js",
|
||||
"line": " var multiArgs = arguments.length > 1 ? !!Object(arguments[1]).multiArgs",
|
||||
"lineNumber": 178,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promise.js",
|
||||
"line": " var result = tryCatch(fn)(nodebackForPromise(ret, multiArgs));",
|
||||
"lineNumber": 180,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promise.js",
|
||||
"line": " util.toFastProperties(Promise); ",
|
||||
"lineNumber": 753,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-03-22T19:15:12.445Z",
|
||||
"reasonDetail": "Promise is a known global"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": "function(callback, receiver, originalName, fn, _, multiArgs) {",
|
||||
"lineNumber": 116,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": " var nodeback = nodebackForPromise(promise, \" + multiArgs + \"); \\n\\",
|
||||
"lineNumber": 167,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": "function makeNodePromisifiedClosure(callback, receiver, _, fn, __, multiArgs) {",
|
||||
"lineNumber": 208,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": " var fn = nodebackForPromise(promise, multiArgs);",
|
||||
"lineNumber": 221,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": "function promisifyAll(obj, suffix, filter, promisifier, multiArgs) {",
|
||||
"lineNumber": 238,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": " makeNodePromisified(key, THIS, key, fn, suffix, multiArgs);",
|
||||
"lineNumber": 249,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": " fn, suffix, multiArgs);",
|
||||
"lineNumber": 253,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": " util.toFastProperties(obj);",
|
||||
"lineNumber": 259,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-03-22T19:15:12.445Z",
|
||||
"reasonDetail": "promisifyAll calls toFastProperties() but is limited to function or object"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": "function promisify(callback, receiver, multiArgs) {",
|
||||
"lineNumber": 263,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": " callback, null, multiArgs);",
|
||||
"lineNumber": 265,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": " var multiArgs = !!options.multiArgs;",
|
||||
"lineNumber": 277,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": " var ret = promisify(fn, receiver, multiArgs);",
|
||||
"lineNumber": 278,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": " var multiArgs = !!options.multiArgs;",
|
||||
"lineNumber": 288,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": " multiArgs);",
|
||||
"lineNumber": 306,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": " promisifyAll(value, suffix, filter, promisifier, multiArgs);",
|
||||
"lineNumber": 307,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/promisify.js",
|
||||
"line": " return promisifyAll(target, suffix, filter, promisifier, multiArgs);",
|
||||
"lineNumber": 311,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/props.js",
|
||||
"line": " this.constructor$(entries);",
|
||||
"lineNumber": 56,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/props.js",
|
||||
"line": " this._init$(undefined, isMap ? -6 : -3);",
|
||||
"lineNumber": 58,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/reduce.js",
|
||||
"line": " this.constructor$(promises);",
|
||||
"lineNumber": 13,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/reduce.js",
|
||||
"line": " this._init$(undefined, -5);",
|
||||
"lineNumber": 30,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/reduce.js",
|
||||
"line": " this._resultCancelled$();",
|
||||
"lineNumber": 68,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/settle.js",
|
||||
"line": " this.constructor$(values);",
|
||||
"lineNumber": 8,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/some.js",
|
||||
"line": " this.constructor$(values);",
|
||||
"lineNumber": 12,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/some.js",
|
||||
"line": " this._init$(undefined, -5);",
|
||||
"lineNumber": 27,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/using.js",
|
||||
"line": " this.constructor$(fn, promise, context);",
|
||||
"lineNumber": 92,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-03-22T19:00:07.131Z"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/util.js",
|
||||
"line": "function toFastProperties(obj) {",
|
||||
"lineNumber": 194,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-03-22T19:15:12.445Z",
|
||||
"reasonDetail": "Declaring a dangerous function"
|
||||
},
|
||||
{
|
||||
"rule": "eval",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/util.js",
|
||||
"line": " eval(obj);",
|
||||
"lineNumber": 201,
|
||||
"reasonCategory": "ruleNeeded",
|
||||
"updated": "2019-03-22T19:00:07.131Z",
|
||||
"reasonDetail": "This is run on whatever is provided to toFastProperties()"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/util.js",
|
||||
"line": " toFastProperties: toFastProperties,",
|
||||
"lineNumber": 354,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-03-22T19:15:12.445Z",
|
||||
"reasonDetail": "Declaring a dangerous function"
|
||||
},
|
||||
{
|
||||
"rule": "bluebird-toFastProperties",
|
||||
"path": "node_modules/cacache/node_modules/bluebird/js/release/util.js",
|
||||
"line": "if (ret.isNode) ret.toFastProperties(process);",
|
||||
"lineNumber": 377,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2019-03-22T19:15:12.445Z",
|
||||
"reasonDetail": "process is a known global"
|
||||
"updated": "2020-08-25T16:47:57.538Z",
|
||||
"reasonDetail": "Not setting, just getting"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-wrap(",
|
||||
|
@ -3152,6 +2445,14 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2018-09-19T18:06:35.446Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/del/node_modules/globby/node_modules/pify/index.js",
|
||||
"line": "\t\t\t\t} else if (opts.multiArgs) {",
|
||||
"lineNumber": 16,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-08-25T00:30:50.619Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/form-data/lib/form_data.js",
|
||||
|
@ -5384,14 +4685,6 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-02-18T22:49:03.644Z"
|
||||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/globby/node_modules/pify/index.js",
|
||||
"line": "\t\t\t\t} else if (opts.multiArgs) {",
|
||||
"lineNumber": 16,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2018-09-19T18:06:35.446Z"
|
||||
},
|
||||
{
|
||||
"rule": "eval",
|
||||
"path": "node_modules/google-libphonenumber/dist/libphonenumber.js",
|
||||
|
@ -6453,14 +5746,6 @@
|
|||
"reasonCategory": "testCode",
|
||||
"updated": "2018-09-15T00:38:04.183Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-before(",
|
||||
"path": "node_modules/javascript-stringify/javascript-stringify.js",
|
||||
"line": " return before(value, function (value, space, next) {",
|
||||
"lineNumber": 354,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2018-09-15T00:38:04.183Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/js-tokens/index.js",
|
||||
|
@ -6523,29 +5808,6 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-04-03T00:52:04.925Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/jss-nested/dist/jss-nested.js",
|
||||
"line": "\tvar refRegExp = /\\$([\\w-]+)/g;",
|
||||
"lineNumber": 75,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-04-30T22:45:07.878Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/jss-nested/dist/jss-nested.min.js",
|
||||
"lineNumber": 1,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-04-30T22:45:07.878Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/jss-nested/lib/index.js",
|
||||
"line": "var refRegExp = /\\$([\\w-]+)/g;",
|
||||
"lineNumber": 19,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-04-30T22:45:07.878Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/jszip/dist/jszip.js",
|
||||
|
@ -10406,14 +9668,6 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-12-11T01:10:06.091Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-html(",
|
||||
"path": "node_modules/remark-stringify/lib/visitors/html.js",
|
||||
"line": "function html(node) {",
|
||||
"lineNumber": 5,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2018-09-15T00:38:04.183Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/request/lib/multipart.js",
|
||||
|
@ -10475,38 +9729,6 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2018-09-19T21:59:32.770Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/serve-static/node_modules/debug/src/browser.js",
|
||||
"line": "function load() {",
|
||||
"lineNumber": 150,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-04-30T22:35:27.860Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/serve-static/node_modules/debug/src/browser.js",
|
||||
"line": "exports.enable(load());",
|
||||
"lineNumber": 168,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-04-30T22:35:27.860Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/serve-static/node_modules/debug/src/node.js",
|
||||
"line": "function load() {",
|
||||
"lineNumber": 156,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-04-30T22:35:27.860Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/serve-static/node_modules/debug/src/node.js",
|
||||
"line": "exports.enable(load());",
|
||||
"lineNumber": 248,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-04-30T22:35:27.860Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "node_modules/sharp/lib/libvips.js",
|
||||
|
@ -10944,11 +10166,11 @@
|
|||
},
|
||||
{
|
||||
"rule": "thenify-multiArgs",
|
||||
"path": "node_modules/terser-webpack-plugin/node_modules/pify/index.js",
|
||||
"path": "node_modules/find-cache-dir/node_modules/pify/index.js",
|
||||
"line": "\t\tif (options.multiArgs) {",
|
||||
"lineNumber": 7,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-04-30T22:45:07.878Z"
|
||||
"updated": "2020-08-25T00:30:50.619Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-before(",
|
||||
|
@ -11135,22 +10357,6 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-12-11T01:10:06.091Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/websocket/node_modules/debug/src/node.js",
|
||||
"line": "function load() {",
|
||||
"lineNumber": 156,
|
||||
"reasonCategory": "falseMatc",
|
||||
"updated": "2020-04-30T20:57:04.499Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-load(",
|
||||
"path": "node_modules/websocket/node_modules/debug/src/node.js",
|
||||
"line": "exports.enable(load());",
|
||||
"lineNumber": 248,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-04-30T20:57:04.499Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/whatwg-fetch/fetch.js",
|
||||
|
@ -11713,5 +10919,31 @@
|
|||
"lineNumber": 51,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2020-04-05T23:45:16.746Z"
|
||||
},
|
||||
{
|
||||
"rule": "eval",
|
||||
"path": "node_modules/js-base64/base64.js",
|
||||
"line": " buffer = eval(\"require('buffer').Buffer\");",
|
||||
"lineNumber": 29,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2020-08-25T16:58:28.474Z",
|
||||
"reasonDetail": "Hard coded string"
|
||||
},
|
||||
{
|
||||
"rule": "eval",
|
||||
"path": "node_modules/js-base64/base64.min.js",
|
||||
"lineNumber": 1,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2020-08-25T16:58:28.474Z",
|
||||
"reasonDetail": "Hard coded string"
|
||||
},
|
||||
{
|
||||
"rule": "DOM-innerHTML",
|
||||
"path": "node_modules/parse-entities/decode-entity.browser.js",
|
||||
"line": " el.innerHTML = entity",
|
||||
"lineNumber": 16,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2020-08-25T16:59:46.588Z",
|
||||
"reasonDetail": "Ephemeral element"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -262,6 +262,7 @@ const excludedFiles = [
|
|||
'^node_modules/@storybook/.+',
|
||||
'^node_modules/cosmiconfig/.+',
|
||||
'^node_modules/create-emotion/.+',
|
||||
'^node_modules/gzip-size/.+',
|
||||
'^node_modules/markdown-to-jsx/.+',
|
||||
'^node_modules/mini-css-extract-plugin/.+',
|
||||
'^node_modules/polished.+',
|
||||
|
@ -274,20 +275,13 @@ const excludedFiles = [
|
|||
'^node_modules/store2/.+',
|
||||
'^node_modules/telejson/.+',
|
||||
|
||||
// Used by Styleguidist
|
||||
'^node_modules/cssnano/.+',
|
||||
'^node_modules/gzip-size/.+',
|
||||
'^node_modules/portfinder/.+',
|
||||
'^node_modules/react-group/.+',
|
||||
'^node_modules/react-styleguidist/.+',
|
||||
'^node_modules/react-docgen-displayname-handler/.+',
|
||||
|
||||
// Used by Webpack
|
||||
'^node_modules/css-select/.+', // Used by html-webpack-plugin
|
||||
'^node_modules/dotenv-webpack/.+',
|
||||
'^node_modules/follow-redirects/.+', // Used by webpack-dev-server
|
||||
'^node_modules/html-webpack-plugin/.+',
|
||||
'^node_modules/node-forge/.+', // Used by webpack-dev-server
|
||||
'^node_modules/portfinder/.+',
|
||||
'^node_modules/renderkid/.+', // Used by html-webpack-plugin
|
||||
'^node_modules/spdy-transport/.+', // Used by webpack-dev-server
|
||||
'^node_modules/spdy/.+', // Used by webpack-dev-server
|
||||
|
|
|
@ -121,8 +121,7 @@
|
|||
"excludedModules": [
|
||||
"node_modules/react-dom",
|
||||
"node_modules/tslint-microsoft-contrib",
|
||||
"node_modules/react-error-overlay",
|
||||
"node_modules/react-styleguidist"
|
||||
"node_modules/react-error-overlay"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -133,8 +132,7 @@
|
|||
"node_modules/react/",
|
||||
"node_modules/react-dom",
|
||||
"node_modules/tslint-microsoft-contrib",
|
||||
"node_modules/react-error-overlay",
|
||||
"node_modules/react-styleguidist"
|
||||
"node_modules/react-error-overlay"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -144,8 +142,7 @@
|
|||
"excludedModules": [
|
||||
"node_modules/react-dom",
|
||||
"node_modules/tslint-microsoft-contrib",
|
||||
"node_modules/react-error-overlay",
|
||||
"node_modules/react-styleguidist"
|
||||
"node_modules/react-error-overlay"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -155,8 +152,7 @@
|
|||
"excludedModules": [
|
||||
"node_modules/react-dom",
|
||||
"node_modules/tslint-microsoft-contrib",
|
||||
"node_modules/react-error-overlay",
|
||||
"node_modules/react-styleguidist"
|
||||
"node_modules/react-error-overlay"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue