Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

uniformize

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uniformize - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

dist/global.d.ts

12

dist/index.js

@@ -11,5 +11,5 @@ "use strict";

Object.defineProperty(String.prototype, "standardize", {
value: function(trim) {
if (trim) return this.removeAccents().toLowerCase().trim();
return this.removeAccents().toLowerCase();
value: function(noTrim) {
if (!noTrim) return this.removeAccents().toLowerCase();
return this.removeAccents().toLowerCase().trim();
},

@@ -32,4 +32,4 @@ enumerable: false

value: function(query, strict) {
if (strict) return this.standardize(true) === query?.standardize(true);
return this.standardize(true).includes(query?.standardize(true));
if (strict) return this.standardize() === query?.standardize();
return this.standardize().includes(query?.standardize());
},

@@ -43,3 +43,3 @@ enumerable: false

if (keepAccent) return decoded;
return decoded.standardize(true);
return decoded.standardize();
},

@@ -46,0 +46,0 @@ enumerable: false

@@ -5,5 +5,5 @@ {

"main": "dist/index.js",
"types": "dist/index.d.ts",
"types": "dist/global.d.ts",
"type": "commonjs",
"version": "1.0.1",
"version": "1.0.2",
"repository": {

@@ -17,2 +17,3 @@ "type": "git",

"prebuild": "tsc --noEmit --skipLibCheck",
"postbuild": "cross-os cp",
"prepublish": "bun run build",

@@ -22,2 +23,8 @@ "release": "commit-and-tag-version",

},
"cross-os": {
"cp": {
"win32": "xcopy /i /Y .\\src\\global.d.ts .\\dist",
"darwin": "cp ./src/global.d.ts ./dist"
}
},
"devDependencies": {

@@ -27,2 +34,3 @@ "@types/bun": "latest",

"commit-and-tag-version": "^12.4.1",
"cross-os": "^1.5.0",
"tsup": "^8.2.4"

@@ -35,3 +43,4 @@ },

"trustedDependencies": [
"@biomejs/biome"
"@biomejs/biome",
"esbuild"
],

@@ -38,0 +47,0 @@ "files": [

Sorry, the diff of this file is not supported yet

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