namirasoft-core
Advanced tools
Comparing version 1.2.16 to 1.3.0
@@ -9,3 +9,3 @@ "use strict"; | ||
} | ||
let R = 6371; // km | ||
let R = 6371; | ||
let dLat = degreeToRadian(lat2 - lat1); | ||
@@ -12,0 +12,0 @@ let dLng = degreeToRadian(lng2 - lng1); |
export declare enum HTTPMethod { | ||
GET = 0, | ||
POST = 1, | ||
PUT = 2, | ||
DELETE = 3 | ||
GET = "GET", | ||
POST = "POST", | ||
PUT = "PUT", | ||
DELETE = "DELETE" | ||
} |
@@ -6,7 +6,7 @@ "use strict"; | ||
(function (HTTPMethod) { | ||
HTTPMethod[HTTPMethod["GET"] = 0] = "GET"; | ||
HTTPMethod[HTTPMethod["POST"] = 1] = "POST"; | ||
HTTPMethod[HTTPMethod["PUT"] = 2] = "PUT"; | ||
HTTPMethod[HTTPMethod["DELETE"] = 3] = "DELETE"; | ||
HTTPMethod["GET"] = "GET"; | ||
HTTPMethod["POST"] = "POST"; | ||
HTTPMethod["PUT"] = "PUT"; | ||
HTTPMethod["DELETE"] = "DELETE"; | ||
})(HTTPMethod || (exports.HTTPMethod = HTTPMethod = {})); | ||
//# sourceMappingURL=HTTPMethod.js.map |
@@ -46,3 +46,2 @@ "use strict"; | ||
} | ||
//year | ||
static yearNumber(date = null) { | ||
@@ -58,3 +57,2 @@ if (!date) | ||
} | ||
//month | ||
static monthNumber(date = null) { | ||
@@ -76,3 +74,2 @@ if (!date) | ||
} | ||
//week | ||
static weekNumber(date = null) { | ||
@@ -94,3 +91,2 @@ if (!date) | ||
} | ||
// day | ||
static dayNumber(date = null) { | ||
@@ -122,3 +118,2 @@ if (!date) | ||
} | ||
//hour | ||
static hourNumberInWeek(date = null) { | ||
@@ -152,3 +147,2 @@ if (!date) | ||
} | ||
// ago | ||
static monthsAgo(months, date) { | ||
@@ -169,3 +163,2 @@ return this.monthsLater(months * -1, date); | ||
} | ||
// later | ||
static later(num, type, date = null) { | ||
@@ -226,3 +219,3 @@ if (!date) | ||
let ageDifMs = Date.now() - birthday.getTime(); | ||
var ageDate = new Date(ageDifMs); // miliseconds from epoch | ||
var ageDate = new Date(ageDifMs); | ||
return Math.abs(ageDate.getUTCFullYear() - 1970); | ||
@@ -229,0 +222,0 @@ } |
{ | ||
"name": "namirasoft-core", | ||
"title": "Namirasoft Core", | ||
"description": "Namira Software Corporation Core NPM Package", | ||
"version": "1.2.16", | ||
"icon": "logo.png", | ||
"logo": "https://static.namirasoft.com/logo/namirasoft/name.png", | ||
"language": "ts", | ||
"framework": "npm", | ||
"application": "package", | ||
"private": false, | ||
"version": "1.3.0", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"scripts": {}, | ||
"author": "Amir Abolhasani", | ||
"license": "MIT", | ||
"scripts": {}, | ||
"dependencies": { | ||
"@types/node": "^20.11.25", | ||
"axios": "^1.6.7", | ||
"@types/node": "^20.11.28", | ||
"axios": "^1.6.8", | ||
"moment": "^2.30.1", | ||
@@ -14,0 +21,0 @@ "phone": "^3.1.42" |
export enum HTTPMethod | ||
{ | ||
GET, | ||
POST, | ||
PUT, | ||
DELETE | ||
GET = "GET", | ||
POST = "POST", | ||
PUT = "PUT", | ||
DELETE = "DELETE" | ||
} |
@@ -29,3 +29,15 @@ { | ||
"isolatedModules": false, | ||
} | ||
"removeComments": true, | ||
}, | ||
"include": [ | ||
"src", | ||
"build/types/**/*.ts" | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
"build", | ||
"dist", | ||
"static", | ||
"public" | ||
] | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
294415
3521
0
Updated@types/node@^20.11.28
Updatedaxios@^1.6.8