@spinajs/util
Advanced tools
Comparing version 2.0.46 to 2.0.50
@@ -1,1 +0,2 @@ | ||
export * from './json'; | ||
export * from './json.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,18 +0,2 @@ | ||
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./json"), exports); | ||
export * from './json.js'; | ||
//# sourceMappingURL=index.js.map |
@@ -7,1 +7,2 @@ export interface ICustomDataType { | ||
export declare function reviver(_: string, value: ICustomDataType): ICustomDataType | Map<unknown, unknown>; | ||
//# sourceMappingURL=json.d.ts.map |
@@ -1,5 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.reviver = exports.replacer = void 0; | ||
function replacer(_, value) { | ||
export function replacer(_, value) { | ||
if (value instanceof Map) { | ||
@@ -15,4 +12,3 @@ return { | ||
} | ||
exports.replacer = replacer; | ||
function reviver(_, value) { | ||
export function reviver(_, value) { | ||
if (typeof value === 'object' && value !== null) { | ||
@@ -25,3 +21,2 @@ if (value.dataType === 'Map') { | ||
} | ||
exports.reviver = reviver; | ||
//# sourceMappingURL=json.js.map |
{ | ||
"name": "@spinajs/util", | ||
"version": "2.0.46", | ||
"version": "2.0.50", | ||
"description": "utility functions shared across @spinajs framework", | ||
"main": "lib/index.js", | ||
"exports": "./lib/index.js", | ||
"type": "module", | ||
"private": false, | ||
"engines": { | ||
"node": ">=16.11" | ||
}, | ||
"scripts": { | ||
"build": "npm run clean && npm run compile && cpx src/views/**/* lib/views && cpx src/static/**/* lib/static", | ||
"compile": "tsc -p tsconfig.build.json", | ||
"clean": "", | ||
"build": "npm run clean && npm run compile", | ||
"compile": "tsc -b tsconfig.json", | ||
"rimraf": "./node_modules/rimraf/bin.js", | ||
"clean": "rimraf lib/ && rimraf tsconfig.tsbuildinfo", | ||
"test": "ts-mocha -p tsconfig.json test/**/*.test.ts", | ||
"coverage": "nyc npm run test", | ||
"build-docs": "rimraf docs && typedoc --options typedoc.json src/", | ||
"prepare": "npm run build", | ||
"format": "prettier --write \"src/**/*.ts\"", | ||
"lint": "eslint -c .eslintrc.js --ext .ts src --fix", | ||
"prepublishOnly": "npm test && npm run lint", | ||
"lint": "eslint -c .eslintrc.cjs --ext .ts src --fix", | ||
"preversion": "npm run lint", | ||
"version": "npm run format && git add -A src", | ||
"postversion": "git push && git push --tags" | ||
"postinstall": "npm run build" | ||
}, | ||
@@ -40,3 +43,3 @@ "files": [ | ||
"homepage": "https://github.com/spinajs/main#readme", | ||
"gitHead": "bd560afd6c9a156071102cc6b4f36115b5498e9d" | ||
"gitHead": "002dc553b0ffffd72193d0121ac425a4083bc9ee" | ||
} |
@@ -0,0 +0,0 @@ # `jobs` |
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
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
10
Yes
3523
27
1