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

@spare/translator

Package Overview
Dependencies
Maintainers
1
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spare/translator - npm Package Compare versions

Comparing version 0.11.15 to 0.11.16

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": "@spare/translator",
"version": "0.11.15",
"version": "0.11.16",
"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": "42f18a61ee83db9134c813f3b63f277a3ddd8064"
"gitHead": "082c77a5f72e6e609ae3cda21c111d6604a7e3e5"
}
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