Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

string.prototype.trimright

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string.prototype.trimright - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

.editorconfig

11

implementation.js
'use strict';
var bind = require('function-bind');
var replace = bind.call(Function.call, String.prototype.replace);
/* eslint-disable no-control-regex */
var rightWhitespace = /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]*$/;
/* eslint-enable no-control-regex */
module.exports = function trimRight() {
return replace(this, rightWhitespace, '');
};
module.exports = require('string.prototype.trimend/implementation');
'use strict';
var bind = require('function-bind');
var callBind = require('es-abstract/helpers/callBind');
var define = require('define-properties');

@@ -10,3 +10,3 @@

var bound = bind.call(Function.call, getPolyfill());
var bound = callBind(getPolyfill());

@@ -13,0 +13,0 @@ define(bound, {

{
"name": "string.prototype.trimright",
"version": "2.1.1",
"version": "2.1.2",
"author": "Jordan Harband",

@@ -8,6 +8,7 @@ "funding": {

},
"description": "ES7 spec-compliant String.prototype.trimRight shim.",
"description": "ES2019 spec-compliant String.prototype.trimLeft shim.",
"license": "MIT",
"main": "index.js",
"scripts": {
"prepublish": "safe-publish-latest",
"pretest": "npm run lint && es-shim-api --bound",

@@ -30,6 +31,9 @@ "test": "npm run tests-only",

"ES7",
"ES2019",
"shim",
"trim",
"trimLeft",
"trimStart",
"trimRight",
"trimEnd",
"polyfill",

@@ -40,11 +44,13 @@ "es-shim API"

"define-properties": "^1.1.3",
"function-bind": "^1.1.1"
"es-abstract": "^1.17.5",
"string.prototype.trimend": "^1.0.0"
},
"devDependencies": {
"@es-shims/api": "^2.1.2",
"@ljharb/eslint-config": "^15.0.2",
"@ljharb/eslint-config": "^16.0.0",
"covert": "^1.1.1",
"eslint": "^6.7.2",
"functions-have-names": "^1.2.0",
"tape": "^4.12.0"
"eslint": "^6.8.0",
"functions-have-names": "^1.2.1",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.0-next.4"
},

@@ -51,0 +57,0 @@ "testling": {

@@ -13,3 +13,3 @@ String.prototype.trimRight <sup>[![Version Badge][npm-version-svg]][package-url]</sup>

A spec-proposal-compliant `String.prototype.trimRight` shim. Invoke its "shim" method to shim `String.prototype.trimRight` if it is unavailable.
A ES2019-spec-compliant `String.prototype.trimRight` shim. Invoke its "shim" method to shim `String.prototype.trimRight` if it is unavailable.

@@ -16,0 +16,0 @@ 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/6.0/#sec-object.assign). In an ES6 environment, it will also work properly with `Symbol`s.

@@ -10,3 +10,3 @@ 'use strict';

var defineProperties = require('define-properties');
var bind = require('function-bind');
var callBind = require('es-abstract/helpers/callBind');
var isEnumerable = Object.prototype.propertyIsEnumerable;

@@ -35,5 +35,5 @@ var functionsHaveNames = require('functions-have-names')();

runTests(bind.call(Function.call, String.prototype.trimRight), t);
runTests(callBind(String.prototype.trimRight), t);
t.end();
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc