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

basic-ms

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basic-ms - npm Package Compare versions

Comparing version
1.0.2
to
1.0.5
+4
-2
ErrorManager.js

@@ -13,3 +13,5 @@ const chalk = require("chalk");

constructor(message) {
const errorMessage = `${chalk.red("[ NodeMS ]")} ${chalk.blue("=>")} ${chalk.gray(message)}`;
const errorMessage = `${chalk.red("[ BasicMS ]")} ${chalk.blue("=>")} ${chalk.gray(
message
)}`;
super(errorMessage);

@@ -19,2 +21,2 @@ }

module.exports = ErrorManager;
module.exports = ErrorManager;
{
"name": "basic-ms",
"version": "1.0.2",
"version": "1.0.5",
"description": "Basic MS Module.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,3 +11,3 @@ ![Image](https://img.shields.io/npm/v/basic-ms?color=%2351F9C0&label=basic-ms)

```npm
- TypeScript Error Fixed.
- Fixed Bugs.
```

@@ -14,0 +14,0 @@

@@ -103,5 +103,5 @@ const ErrorManager = require("./ErrorManager");

static isTimeExists(time) {
const args = ["s", "m", "h", "d", "w", "mo", "y"]
for(let arg of args){
if(time.endsWith(arg)) return true;
const args = ["s", "m", "h", "d", "w", "mo", "y"];
for (let arg of args) {
if (time.endsWith(arg)) return true;
else return false;

@@ -112,4 +112,4 @@ }

/**
*
* @param {number} milliseconds
*
* @param {number} milliseconds
* @returns {number}

@@ -116,0 +116,0 @@ */