New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

string-unfancy

Package Overview
Dependencies
Maintainers
1
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-unfancy - npm Package Compare versions

Comparing version
6.0.29
to
6.0.30
+2
-2
dist/string-unfancy.esm.js
/**
* @name string-unfancy
* @fileoverview Replace all n/m dashes, curly quotes with their simpler equivalents
* @version 6.0.29
* @version 6.0.30
* @author Roy Revelt, Codsen Ltd

@@ -10,2 +10,2 @@ * @license MIT

import i from"he";import{isStr as p}from"codsen-utils";var r="6.0.29";var g=r;function y(s){let n={"\xB4":"'",\u02BB:"'",\u02BC:"'",\u02BD:"'","\u02C8":"'","\u02B9":"'","\u0312":"'","\u0313":"'","\u0314":"'","\u0315":"'","\u02BA":'"',"\u201C":'"',"\u201D":'"',"\u2012":"-","\u2013":"-","\u2014":"-","\u2018":"'","\u2019":"'","\u2026":"...","\u2212":"-","\uFE49":"-","\xA0":" "};if(!p(s))throw new Error(`string-unfancy/unfancy(): [THROW_ID_01] The input is not a string! It's: ${typeof s}`);let e=s;for(;i.decode(e)!==e;)e=i.decode(e);for(let t=0,u=e.length;t<u;t++)e[t]in n&&(e=`${e.slice(0,t)}${n[e[t]]}${e.slice(t+1)}`);return e}export{y as unfancy,g as version};
import i from"he";import{isStr as p}from"codsen-utils";var r="6.0.30";var g=r;function y(s){let n={"\xB4":"'",\u02BB:"'",\u02BC:"'",\u02BD:"'","\u02C8":"'","\u02B9":"'","\u0312":"'","\u0313":"'","\u0314":"'","\u0315":"'","\u02BA":'"',"\u201C":'"',"\u201D":'"',"\u2012":"-","\u2013":"-","\u2014":"-","\u2018":"'","\u2019":"'","\u2026":"...","\u2212":"-","\uFE49":"-","\xA0":" "};if(!p(s))throw new Error(`string-unfancy/unfancy(): [THROW_ID_01] The input is not a string! It's: ${typeof s}`);let e=s;for(;i.decode(e)!==e;)e=i.decode(e);for(let t=0,u=e.length;t<u;t++)e[t]in n&&(e=`${e.slice(0,t)}${n[e[t]]}${e.slice(t+1)}`);return e}export{y as unfancy,g as version};
{
"name": "string-unfancy",
"version": "6.0.29",
"version": "6.0.30",
"description": "Replace all n/m dashes, curly quotes with their simpler equivalents",

@@ -77,3 +77,3 @@ "keywords": [

"dependencies": {
"codsen-utils": "^1.6.17",
"codsen-utils": "^1.6.18",
"he": "^1.2.0"

@@ -80,0 +80,0 @@ },

Sorry, the diff of this file is too big to display