Socket
Socket
Sign inDemoInstall

@hestia-earth/utils

Package Overview
Dependencies
1
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.10.17 to 0.10.18

dist/delta.d.ts

1

dist/string.d.ts
export declare const ellipsis: (text?: string, maxlength?: number) => string;
export declare const keyToLabel: (key: string) => string;
export declare const toDashCase: (value?: string) => string;
export declare const now: () => string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.now = exports.keyToLabel = exports.ellipsis = void 0;
exports.now = exports.toDashCase = exports.keyToLabel = exports.ellipsis = void 0;
var ellipsis = function (text, maxlength) {

@@ -14,3 +14,19 @@ if (text === void 0) { text = ''; }

exports.keyToLabel = keyToLabel;
var toDashCase = function (value) {
return value
? value
.replace(/([\d]{4})([A-Z]{1})/g, function (g) { return g.substring(0, 4) + "-" + g[4].toLowerCase(); })
.replace(/([\d]{1}[A-Z]{1}?)([A-Z]{1})/g, function (_g) {
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
}
return (args[0] + "-" + args[1]).toLowerCase();
})
.replace(/([A-Z])/g, function (g) { return "-" + g[0].toLowerCase(); })
.replace(/([0-9]{4})/g, function (g) { return "-" + g; })
: null;
};
exports.toDashCase = toDashCase;
var now = function () { return new Date().toJSON().substring(0, 10); };
exports.now = now;
{
"name": "@hestia-earth/utils",
"version": "0.10.17",
"version": "0.10.18",
"description": "Hestia Utils library",

@@ -35,2 +35,3 @@ "main": "dist/index.js",

"devDependencies": {
"@hestia-earth/glossary": "^0.2.5",
"@types/chai": "^4.2.21",

@@ -51,3 +52,6 @@ "@types/mocha": "^7.0.2",

"typescript": "^4.3.5"
},
"peerDependencies": {
"@hestia-earth/glossary": "^0.2.5"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc