string.prototype.trim
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -8,2 +8,13 @@ # Changelog | ||
## [v1.2.4](https://github.com/es-shims/String.prototype.trim/compare/v1.2.3...v1.2.4) - 2021-02-21 | ||
### Commits | ||
- [meta] do not publish github action workflow files [`936161b`](https://github.com/es-shims/String.prototype.trim/commit/936161bf43c83e09bc39c4d472d313c8f64e3fe3) | ||
- [readme] remove travis badge [`9a28c39`](https://github.com/es-shims/String.prototype.trim/commit/9a28c3943b51a2cc87694c954205249122256d92) | ||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `functions-have-names`, `has-strict-mode`, `tape` [`7b4be8d`](https://github.com/es-shims/String.prototype.trim/commit/7b4be8d12365feb5b42658902cf18316508a0c62) | ||
- [Tests] increase coverage [`31b8735`](https://github.com/es-shims/String.prototype.trim/commit/31b87354f55f24501ca8b2f02477cb692a70457c) | ||
- [actions] update workflows [`eda6ab7`](https://github.com/es-shims/String.prototype.trim/commit/eda6ab73fea52b49b74653e96ac81d5372599dc8) | ||
- [Deps] update `call-bind`, `es-abstract` [`083f88f`](https://github.com/es-shims/String.prototype.trim/commit/083f88f5342144f337f1f82874cb8cd6f27f2262) | ||
## [v1.2.3](https://github.com/es-shims/String.prototype.trim/compare/v1.2.2...v1.2.3) - 2020-11-21 | ||
@@ -10,0 +21,0 @@ |
{ | ||
"name": "string.prototype.trim", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"author": { | ||
@@ -47,17 +47,17 @@ "name": "Jordan Harband", | ||
"dependencies": { | ||
"call-bind": "^1.0.0", | ||
"call-bind": "^1.0.2", | ||
"define-properties": "^1.1.3", | ||
"es-abstract": "^1.18.0-next.1" | ||
"es-abstract": "^1.18.0-next.2" | ||
}, | ||
"devDependencies": { | ||
"@es-shims/api": "^2.1.2", | ||
"@ljharb/eslint-config": "^17.2.0", | ||
"aud": "^1.1.3", | ||
"@ljharb/eslint-config": "^17.5.1", | ||
"aud": "^1.1.4", | ||
"auto-changelog": "^2.2.1", | ||
"eslint": "^7.14.0", | ||
"functions-have-names": "^1.2.1", | ||
"has-strict-mode": "^1.0.0", | ||
"eslint": "^7.20.0", | ||
"functions-have-names": "^1.2.2", | ||
"has-strict-mode": "^1.0.1", | ||
"nyc": "^10.3.2", | ||
"safe-publish-latest": "^1.1.4", | ||
"tape": "^5.0.1" | ||
"tape": "^5.2.0" | ||
}, | ||
@@ -64,0 +64,0 @@ "testling": { |
String.prototype.trim <sup>[![Version Badge][npm-version-svg]][package-url]</sup> | ||
[![Build Status][travis-svg]][travis-url] | ||
[![dependency status][deps-svg]][deps-url] | ||
@@ -15,3 +14,3 @@ [![dev dependency status][dev-deps-svg]][dev-deps-url] | ||
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](http://www.ecma-international.org/ecma-262/5.1/#sec-15.5.4.20). | ||
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the spec (both [ES5](https://262.ecma-international.org/5.1/#sec-15.5.4.20) and [current](https://tc39.es/ecma262/#sec-string.prototype.trim)). | ||
@@ -38,5 +37,3 @@ Most common usage: | ||
[package-url]: https://npmjs.com/package/string.prototype.trim | ||
[npm-version-svg]: http://versionbadg.es/es-shims/String.prototype.trim.svg | ||
[travis-svg]: https://travis-ci.org/es-shims/String.prototype.trim.svg | ||
[travis-url]: https://travis-ci.org/es-shims/String.prototype.trim | ||
[npm-version-svg]: https://versionbadg.es/es-shims/String.prototype.trim.svg | ||
[deps-svg]: https://david-dm.org/es-shims/String.prototype.trim.svg | ||
@@ -49,5 +46,5 @@ [deps-url]: https://david-dm.org/es-shims/String.prototype.trim | ||
[npm-badge-png]: https://nodei.co/npm/string.prototype.trim.png?downloads=true&stars=true | ||
[license-image]: http://img.shields.io/npm/l/string.prototype.trim.svg | ||
[license-image]: https://img.shields.io/npm/l/string.prototype.trim.svg | ||
[license-url]: LICENSE | ||
[downloads-image]: http://img.shields.io/npm/dm/string.prototype.trim.svg | ||
[downloads-url]: http://npm-stat.com/charts.html?package=string.prototype.trim | ||
[downloads-image]: https://img.shields.io/npm/dm/string.prototype.trim.svg | ||
[downloads-url]: https://npm-stat.com/charts.html?package=string.prototype.trim |
'use strict'; | ||
var trim = require('../'); | ||
trim.shim(); | ||
require('../auto'); | ||
@@ -29,4 +28,4 @@ var test = require('tape'); | ||
t.test('bad string/this value', { skip: !supportsStrictMode }, function (st) { | ||
st['throws'](function () { return trim(undefined, 'a'); }, TypeError, 'undefined is not an object'); | ||
st['throws'](function () { return trim(null, 'a'); }, TypeError, 'null is not an object'); | ||
st['throws'](function () { return String.prototype.trim.call(undefined, 'a'); }, TypeError, 'undefined is not an object'); | ||
st['throws'](function () { return String.prototype.trim.call(null, 'a'); }, TypeError, 'null is not an object'); | ||
st.end(); | ||
@@ -33,0 +32,0 @@ }); |
26437
17
126
48
Updatedcall-bind@^1.0.2
Updatedes-abstract@^1.18.0-next.2