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

@texting/translator

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@texting/translator - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

2

dist/index.cjs.js

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

const makeReplaceable = function (dict) {
if (this !== null && this !== void 0 && this.sort) sortKeysByLength(dict);
if (this != null && this.sort) sortKeysByLength(dict);
Object.defineProperty(dict, Symbol.replace, {

@@ -11,0 +11,0 @@ value(word, after) {

const sortKeysByLength = dict => dict.sort(([a], [b]) => String(b).length - String(a).length);
const makeReplaceable = function (dict) {
if (this !== null && this !== void 0 && this.sort) sortKeysByLength(dict);
if (this != null && this.sort) sortKeysByLength(dict);
Object.defineProperty(dict, Symbol.replace, {

@@ -6,0 +6,0 @@ value(word, after) {

{
"name": "@texting/translator",
"version": "0.0.10",
"version": "0.0.11",
"description": "Translator, bulk replace string at a time",

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

"homepage": "https://github.com/gadge/spare#readme",
"gitHead": "dc57cfa4c97ec9130bc54a0ca0644d47152bd242"
"gitHead": "51e4340828860e5ae4cff91fd23764b6555cbfe4"
}
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