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.4.8 to 0.4.9

4

dist/index.cjs.js

@@ -7,4 +7,4 @@ 'use strict';

const makeReplaceable = dict => {
if (undefined === null || undefined === void 0 ? void 0 : undefined.sort) sortKeysByLength(dict);
const makeReplaceable = function (dict) {
if (this === null || this === void 0 ? void 0 : 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 = dict => {
if (undefined === null || undefined === void 0 ? void 0 : undefined.sort) sortKeysByLength(dict);
const makeReplaceable = function (dict) {
if (this === null || this === void 0 ? void 0 : this.sort) sortKeysByLength(dict);
Object.defineProperty(dict, Symbol.replace, {

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

{
"name": "@spare/translator",
"version": "0.4.8",
"version": "0.4.9",
"description": "Translator, bulk replace string at a time",

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

"homepage": "https://github.com/hoyeungw/glossa#readme",
"gitHead": "3f16584e3fb33b541d675564302b52016f22dc4e"
"gitHead": "e20ee10dd58ea81e4289013f6602f70fa6b4d912"
}
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