🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

pantsu

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pantsu - npm Package Compare versions

Comparing version
1.0.1
to
1.1.0
+3
dist/UrlUtils.d.ts
export default class UrlUtils {
static splitPath(url: string | URL): string[];
}
+3
-1

@@ -1,1 +0,3 @@

export { default as StringUtils } from "./StringUtils";
import StringUtils from "./StringUtils";
import UrlUtils from "./UrlUtils";
export { StringUtils, UrlUtils };

@@ -1,2 +0,2 @@

exports.StringUtils=/*#__PURE__*/function(){function n(){}return n.equalsIgnoreCase=function(n,r){return(null==n?void 0:n.toLowerCase())==(null==r?void 0:r.toLowerCase())},n.validJSON=function(n){if(!n)return!1;try{return JSON.parse(n),!0}catch(n){return!1}},n}();
var n=/*#__PURE__*/function(){function n(){}return n.equalsIgnoreCase=function(n,t){return(null==n?void 0:n.toLowerCase())==(null==t?void 0:t.toLowerCase())},n.validJSON=function(n){if(!n)return!1;try{return JSON.parse(n),!0}catch(n){return!1}},n}(),t=/*#__PURE__*/function(){function n(){}return n.splitPath=function(n){var t,r,e;return null==(t=new URL(n))||null==(r=t.pathname)||null==(e=r.split("/"))?void 0:e.filter(Boolean)},n}();exports.StringUtils=n,exports.UrlUtils=t;
//# sourceMappingURL=index.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"index.js","sources":["../src/StringUtils.ts"],"sourcesContent":["/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/. */\n\nexport default class StringUtils {\n public static equalsIgnoreCase(str1: string, str2: string): boolean {\n return str1?.toLowerCase() == str2?.toLowerCase();\n }\n\n /**\n * Checks if the string could be parsed as JSON.\n */\n public static validJSON(str: string) {\n if (!str) return false;\n\n try {\n JSON.parse(str);\n return true;\n } catch (error) {\n return false;\n }\n }\n}\n"],"names":["equalsIgnoreCase","str1","str2","toLowerCase","validJSON","str","JSON","parse","error"],"mappings":"iCAKkBA,WAAAA,SAAAA,IAAAA,QAAAA,EAAAA,iBAAP,SAAwBC,EAAcC,GACzC,OAAO,MAAAD,OAAA,EAAAA,EAAME,iBAAN,MAAuBD,OAAvB,EAAuBA,EAAMC,cACvC,EAKaC,EAAAA,UAAP,SAAiBC,GACpB,IAAKA,EAAK,OAAA,EAEV,IAEI,OADAC,KAAKC,MAAMF,IACJ,CAGV,CAFC,MAAOG,GACL,OACH,CAAA,CACJ,IAhBaR"}
{"version":3,"file":"index.js","sources":["../src/StringUtils.ts","../src/UrlUtils.ts"],"sourcesContent":["/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/. */\n\nexport default class StringUtils {\n public static equalsIgnoreCase(str1: string, str2: string): boolean {\n return str1?.toLowerCase() == str2?.toLowerCase();\n }\n\n /**\n * Checks if the string could be parsed as JSON.\n */\n public static validJSON(str: string) {\n if (!str) return false;\n\n try {\n JSON.parse(str);\n return true;\n } catch (error) {\n return false;\n }\n }\n}\n","export default class UrlUtils {\n public static splitPath(url: string | URL) {\n return new URL(url)?.pathname?.split(\"/\")?.filter(Boolean);\n }\n}\n"],"names":["StringUtils","equalsIgnoreCase","str1","str2","toLowerCase","validJSON","str","JSON","parse","error","UrlUtils","splitPath","url","_URL","_URL$pathname","_URL$pathname$split","URL","pathname","split","filter","Boolean"],"mappings":"AAIqBA,IAAAA,eACHC,WAAAA,SAAAA,IAAAA,QAAAA,EAAAA,iBAAP,SAAwBC,EAAcC,GACzC,OAAO,MAAAD,OAAA,EAAAA,EAAME,iBAAN,MAAuBD,OAAvB,EAAuBA,EAAMC,cACvC,EAKaC,EAAAA,UAAP,SAAiBC,GACpB,IAAKA,EAAK,OAAA,EAEV,IAEI,OADAC,KAAKC,MAAMF,IACJ,CAGV,CAFC,MAAOG,GACL,OACH,CAAA,CACJ,IAhBaR,GCLGS,eACHC,WAAAA,SAAAA,IAAAA,QAAAA,EAAAA,UAAP,SAAiBC,GACpB,IAAAC,EAAAC,EAAAC,EAAA,OAAO,OAAPF,EAAO,IAAIG,IAAIJ,KAAf,OAAOE,EAAAD,EAAcI,WAArB,OAAAF,EAAOD,EAAwBI,MAAM,WAA9B,EAAAH,EAAoCI,OAAOC,QACrD,IAFaT"}

@@ -1,2 +0,2 @@

var r=/*#__PURE__*/function(){function r(){}return r.equalsIgnoreCase=function(r,n){return(null==r?void 0:r.toLowerCase())==(null==n?void 0:n.toLowerCase())},r.validJSON=function(r){if(!r)return!1;try{return JSON.parse(r),!0}catch(r){return!1}},r}();export{r as StringUtils};
var n=/*#__PURE__*/function(){function n(){}return n.equalsIgnoreCase=function(n,t){return(null==n?void 0:n.toLowerCase())==(null==t?void 0:t.toLowerCase())},n.validJSON=function(n){if(!n)return!1;try{return JSON.parse(n),!0}catch(n){return!1}},n}(),t=/*#__PURE__*/function(){function n(){}return n.splitPath=function(n){var t,r,e;return null==(t=new URL(n))||null==(r=t.pathname)||null==(e=r.split("/"))?void 0:e.filter(Boolean)},n}();export{n as StringUtils,t as UrlUtils};
//# sourceMappingURL=index.module.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"index.module.js","sources":["../src/StringUtils.ts"],"sourcesContent":["/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/. */\n\nexport default class StringUtils {\n public static equalsIgnoreCase(str1: string, str2: string): boolean {\n return str1?.toLowerCase() == str2?.toLowerCase();\n }\n\n /**\n * Checks if the string could be parsed as JSON.\n */\n public static validJSON(str: string) {\n if (!str) return false;\n\n try {\n JSON.parse(str);\n return true;\n } catch (error) {\n return false;\n }\n }\n}\n"],"names":["StringUtils","equalsIgnoreCase","str1","str2","toLowerCase","validJSON","str","JSON","parse","error"],"mappings":"AAIqBA,IAAAA,eACHC,WAAAA,SAAAA,IAAAA,QAAAA,EAAAA,iBAAP,SAAwBC,EAAcC,GACzC,OAAO,MAAAD,OAAA,EAAAA,EAAME,iBAAN,MAAuBD,OAAvB,EAAuBA,EAAMC,cACvC,EAKaC,EAAAA,UAAP,SAAiBC,GACpB,IAAKA,EAAK,OAAA,EAEV,IAEI,OADAC,KAAKC,MAAMF,IACJ,CAGV,CAFC,MAAOG,GACL,OACH,CAAA,CACJ,IAhBaR"}
{"version":3,"file":"index.module.js","sources":["../src/StringUtils.ts","../src/UrlUtils.ts"],"sourcesContent":["/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/. */\n\nexport default class StringUtils {\n public static equalsIgnoreCase(str1: string, str2: string): boolean {\n return str1?.toLowerCase() == str2?.toLowerCase();\n }\n\n /**\n * Checks if the string could be parsed as JSON.\n */\n public static validJSON(str: string) {\n if (!str) return false;\n\n try {\n JSON.parse(str);\n return true;\n } catch (error) {\n return false;\n }\n }\n}\n","export default class UrlUtils {\n public static splitPath(url: string | URL) {\n return new URL(url)?.pathname?.split(\"/\")?.filter(Boolean);\n }\n}\n"],"names":["StringUtils","equalsIgnoreCase","str1","str2","toLowerCase","validJSON","str","JSON","parse","error","UrlUtils","splitPath","url","_URL","_URL$pathname","_URL$pathname$split","URL","pathname","split","filter","Boolean"],"mappings":"AAIqBA,IAAAA,eACHC,WAAAA,SAAAA,IAAAA,QAAAA,EAAAA,iBAAP,SAAwBC,EAAcC,GACzC,OAAO,MAAAD,OAAA,EAAAA,EAAME,iBAAN,MAAuBD,OAAvB,EAAuBA,EAAMC,cACvC,EAKaC,EAAAA,UAAP,SAAiBC,GACpB,IAAKA,EAAK,OAAA,EAEV,IAEI,OADAC,KAAKC,MAAMF,IACJ,CAGV,CAFC,MAAOG,GACL,OACH,CAAA,CACJ,IAhBaR,GCLGS,eACHC,WAAAA,SAAAA,IAAAA,QAAAA,EAAAA,UAAP,SAAiBC,GACpB,IAAAC,EAAAC,EAAAC,EAAA,OAAO,OAAPF,EAAO,IAAIG,IAAIJ,KAAf,OAAOE,EAAAD,EAAcI,WAArB,OAAAF,EAAOD,EAAwBI,MAAM,WAA9B,EAAAH,EAAoCI,OAAOC,QACrD,IAFaT"}
{
"name": "pantsu",
"description": "Utilities for JS projects",
"version": "1.0.1",
"license": "MPL-2.0",
"packageManager": "pnpm@7.9.3",
"main": "dist/index.js",
"module": "dist/index.module.js",
"source": "src/index.ts",
"name": "pantsu",
"description": "Utilities for JS projects",
"version": "1.1.0",
"license": "MPL-2.0",
"packageManager": "pnpm@7.9.3",
"main": "dist/index.js",
"module": "dist/index.module.js",
"source": "src/index.ts",
"files": [
"dist/**/*"
],
"repository": {
"type": "git",
"url": "git+https://github.com/TeraNovaLP/Pantsu.git"
},
"keywords": [
"utilities"
],
"devDependencies": {
"typescript": "^4.7.4",
"microbundle": "^0.15.1",
"ts-node": "^10.9.1",
"ava": "^4.3.3"
},
"ava": {
"files": [
"dist/**/*"
"test/**/*"
],
"repository": {
"type": "git",
"url": "git+https://github.com/TeraNovaLP/Pantsu.git"
},
"keywords": [
"utilities"
"extensions": [
"ts"
],
"scripts": {
"build": "microbundle --format cjs,esm --compress"
},
"devDependencies": {
"typescript": "^4.7.4",
"microbundle": "^0.15.1"
}
}
"require": [
"ts-node/register"
]
},
"scripts": {
"build": "microbundle --format cjs,esm --compress",
"test": "ava"
}
}