New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@teambit/toolbox.string.strip-trailing-char

Package Overview
Dependencies
Maintainers
15
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teambit/toolbox.string.strip-trailing-char - npm Package Compare versions

Comparing version 0.0.499 to 0.0.500

22

dist/index.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "stripTrailingChar", {
enumerable: true,
get: function () {
return _stripTrailingChar().stripTrailingChar;
}
});
function _stripTrailingChar() {
const data = require("./strip-trailing-char");
_stripTrailingChar = function () {
return data;
};
return data;
}
Object.defineProperty(exports, "__esModule", { value: true });
exports.stripTrailingChar = void 0;
var strip_trailing_char_1 = require("./strip-trailing-char");
Object.defineProperty(exports, "stripTrailingChar", { enumerable: true, get: function () { return strip_trailing_char_1.stripTrailingChar; } });
//# sourceMappingURL=index.js.map

18

dist/strip-trailing-char.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "__esModule", { value: true });
exports.stripTrailingChar = stripTrailingChar;

@@ -13,11 +10,10 @@ /**

function stripTrailingChar(str, char) {
if (!str || !char) {
if (!str || !char) {
return str;
}
if (str[str.length - 1] === char) {
return str.slice(0, -1);
}
return str;
}
if (str[str.length - 1] === char) {
return str.slice(0, -1);
}
return str;
}
//# sourceMappingURL=strip-trailing-char.js.map
{
"name": "@teambit/toolbox.string.strip-trailing-char",
"version": "0.0.499",
"version": "0.0.500",
"homepage": "https://bit.cloud/teambit/toolbox/string/strip-trailing-char",

@@ -9,3 +9,3 @@ "main": "dist/index.js",

"name": "string/strip-trailing-char",
"version": "0.0.499"
"version": "0.0.500"
},

@@ -16,3 +16,3 @@ "dependencies": {},

"chai": "4.3.0",
"@teambit/node.envs.node-babel-mocha": "0.1.4"
"@teambit/node.envs.node-typescript-mocha": "0.0.1"
},

@@ -19,0 +19,0 @@ "peerDependencies": {},

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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