@twreporter/errors
Advanced tools
Comparing version 1.1.0 to 1.1.1-rc.0
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.1.1-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/errors@1.1.0...@twreporter/errors@1.1.1-rc.0) (2021-09-24) | ||
**Note:** Version bump only for package @twreporter/errors | ||
# [1.1.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/errors@1.1.0-rc.0...@twreporter/errors@1.1.0) (2020-03-16) | ||
@@ -8,0 +16,0 @@ |
@@ -15,3 +15,9 @@ "use strict"; | ||
var array = string.split(/\r?\n|\r/); | ||
array.splice(array.length - trimmedCount, trimmedCount); | ||
if (array.length > trimmedCount) { | ||
array.splice(array.length - trimmedCount, trimmedCount); | ||
} else { | ||
array.splice(1, array.length - 1); | ||
} | ||
return array.join('\n'); | ||
@@ -18,0 +24,0 @@ } |
{ | ||
"name": "@twreporter/errors", | ||
"version": "1.1.0", | ||
"version": "1.1.1-rc.0", | ||
"main": "lib/index.js", | ||
@@ -23,3 +23,3 @@ "repository": "https://github.com/twreporter/twreporter-npm-packages.git", | ||
}, | ||
"gitHead": "de48004723d24d6bf916fc89b61992570f138077" | ||
"gitHead": "19d77baee3374ca5073d0b039f5d2d27ec4658c7" | ||
} |
@@ -41,3 +41,3 @@ # @twreporter/errors | ||
```js | ||
import errors from '@twreporter/error' | ||
import errors from '@twreporter/errors' | ||
@@ -77,3 +77,3 @@ function doSomething() { | ||
```js | ||
import errors from '@twreporter/error' | ||
import errors from '@twreporter/errors' | ||
@@ -106,3 +106,3 @@ function doSomething() { | ||
```js | ||
import errors from '@twreporter/error' | ||
import errors from '@twreporter/errors' | ||
@@ -156,3 +156,3 @@ function nestedFailedTask() { | ||
```js | ||
import errors from '@twreporter/error' | ||
import errors from '@twreporter/errors' | ||
@@ -217,3 +217,3 @@ function nestedFailedTask() { | ||
```js | ||
import errors from '@twreporter/error' | ||
import errors from '@twreporter/errors' | ||
@@ -259,3 +259,3 @@ function invokeSomethingWithError() { | ||
```js | ||
import errors from '@twreporter/error' | ||
import errors from '@twreporter/errors' | ||
import axios from 'axios' | ||
@@ -262,0 +262,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
27603
360
2