react-error-guard
Advanced tools
Comparing version 0.2.3 to 0.3.0
@@ -1,9 +0,1 @@ | ||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
/* */ | ||
import React from 'react'; | ||
@@ -10,0 +2,0 @@ import Header from '../components/Header'; |
@@ -9,10 +9,2 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
/* */ | ||
import React, { PureComponent } from 'react'; | ||
@@ -19,0 +11,0 @@ import ErrorOverlay from '../components/ErrorOverlay'; |
@@ -9,10 +9,2 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
/* */ | ||
import React, { Component } from 'react'; | ||
@@ -19,0 +11,0 @@ import CodeBlock from './StackFrameCodeBlock'; |
@@ -1,8 +0,1 @@ | ||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
import React from 'react'; | ||
@@ -9,0 +2,0 @@ import CodeBlock from '../components/CodeBlock'; |
@@ -16,3 +16,2 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
/* */ | ||
import React, { Component } from 'react'; | ||
@@ -19,0 +18,0 @@ import StackFrame from './StackFrame'; |
@@ -8,4 +8,2 @@ /** | ||
/* */ | ||
import Anser from 'anser'; | ||
@@ -12,0 +10,0 @@ import { AllHtmlEntities as Entities } from 'html-entities'; |
@@ -7,4 +7,2 @@ /** | ||
*/ | ||
/* */ | ||
import { ScriptLine } from './stack-frame'; | ||
@@ -11,0 +9,0 @@ |
@@ -79,4 +79,2 @@ import _regeneratorRuntime from 'babel-runtime/regenerator'; | ||
*/ | ||
/* */ | ||
import { SourceMapConsumer } from 'source-map'; | ||
@@ -83,0 +81,0 @@ |
@@ -1,8 +0,1 @@ | ||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
import { parse } from './parser'; | ||
@@ -26,5 +19,5 @@ import { map } from './mapper'; | ||
return enhancedFramesPromise.then(function (enhancedFrames) { | ||
var isProduction = process.env.NODE_ENV !== 'production'; | ||
var isDevelopment = process.env.NODE_ENV !== 'production'; | ||
if (isProduction) { | ||
if (isDevelopment) { | ||
if (enhancedFrames.map(function (f) { | ||
@@ -31,0 +24,0 @@ return f._originalFileName; |
@@ -7,4 +7,2 @@ /** | ||
*/ | ||
/* */ | ||
function isBultinErrorName(errorName) { | ||
@@ -11,0 +9,0 @@ switch (errorName) { |
@@ -7,4 +7,2 @@ /** | ||
*/ | ||
/* */ | ||
function isInternalFile(sourceFileName, fileName) { | ||
@@ -11,0 +9,0 @@ return sourceFileName == null || sourceFileName === '' || sourceFileName.indexOf('/~/') !== -1 || sourceFileName.indexOf('/node_modules/') !== -1 || sourceFileName.trim().indexOf(' ') !== -1 || fileName == null || fileName === ''; |
@@ -12,4 +12,2 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
/* */ | ||
/** A container holding a script line. */ | ||
@@ -16,0 +14,0 @@ var ScriptLine = |
@@ -8,4 +8,2 @@ /** | ||
/* */ | ||
function stripInlineStacktrace(message) { | ||
@@ -12,0 +10,0 @@ return message.split('\n').filter(function (line) { |
{ | ||
"name": "react-error-guard", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"main": "lib/index.js", | ||
@@ -20,10 +20,8 @@ "license": "MIT", | ||
"keywords": [ | ||
"overlay", | ||
"react", | ||
"syntax", | ||
"error", | ||
"red", | ||
"box", | ||
"redbox", | ||
"crash", | ||
"warning" | ||
"warning", | ||
"monitoring" | ||
], | ||
@@ -33,3 +31,2 @@ "author": "Vinicius <dev.webx@gmail.com>", | ||
"anser": "1.4.6", | ||
"flow-remove-types": "^1.2.3", | ||
"html-entities": "1.2.1", | ||
@@ -36,0 +33,0 @@ "settle-promise": "1.0.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
79955
1891
- Removedflow-remove-types@^1.2.3
- Removedbabylon@6.18.0(transitive)
- Removedflow-remove-types@1.2.3(transitive)
- Removedvlq@0.2.3(transitive)