Comparing version 1.0.39 to 1.0.40
"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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -32,12 +9,4 @@ exports.Chrono = void 0; | ||
const timeline_js_1 = require("./table/components/timeline.js"); | ||
const node_perf_hooks_1 = require("node:perf_hooks"); | ||
let myGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof this !== 'undefined' ? this : {}; | ||
let performance = myGlobal === null || myGlobal === void 0 ? void 0 : myGlobal.performance; | ||
if (performance === undefined) { | ||
try { | ||
performance = (await Promise.resolve().then(() => __importStar(require('perf_hooks')))).performance; | ||
} | ||
catch (e) { } | ||
} | ||
if (performance === undefined) | ||
performance = {}; | ||
// needed only for debuging | ||
@@ -47,4 +16,4 @@ //import { RE } from './ramdaExt.js'; | ||
let milisecondsNow; | ||
if (performance === null || performance === void 0 ? void 0 : performance.now) | ||
milisecondsNow = () => performance.now(); | ||
if (node_perf_hooks_1.performance === null || node_perf_hooks_1.performance === void 0 ? void 0 : node_perf_hooks_1.performance.now) | ||
milisecondsNow = () => node_perf_hooks_1.performance.now(); | ||
if (milisecondsNow === undefined) | ||
@@ -51,0 +20,0 @@ milisecondsNow = () => Date.now(); |
@@ -6,12 +6,4 @@ import { arraySorter, pushUniqueKeyOrChange, sorterByPaths, pushUniqueKey, CustomError, pushAt } from './jsUtils.js'; | ||
import { Timeline } from './table/components/timeline.js'; | ||
import { performance } from 'node:perf_hooks'; | ||
let myGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof this !== 'undefined' ? this : {}; | ||
let performance = myGlobal?.performance; | ||
if (performance === undefined) { | ||
try { | ||
performance = (await import('perf_hooks')).performance; | ||
} | ||
catch (e) { } | ||
} | ||
if (performance === undefined) | ||
performance = {}; | ||
// needed only for debuging | ||
@@ -18,0 +10,0 @@ //import { RE } from './ramdaExt.js'; |
{ | ||
"name": "js-awe", | ||
"version": "1.0.39", | ||
"version": "1.0.40", | ||
"homepage": "https://github.com/josuamanuel/js-awe", | ||
@@ -34,3 +34,3 @@ "author": "josuamanuel@hotmail.com", | ||
"testUT": "export CONFIG_ENV=Testing && export LOG_LEVEL=SILENT && mocha ./test/**/*.js", | ||
"buildWeb": "rollup -c", | ||
"buildWeb": "rollup -c && ./awkChangenNodePerf.sh", | ||
"buildLib": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && ./fixup", | ||
@@ -44,2 +44,3 @@ "buildTypes": "tsc -p tsconfig-types.json" | ||
"@rollup/plugin-typescript": "^11.1.2", | ||
"@types/node": "^20.4.1", | ||
"rollup": "^3.26.2", | ||
@@ -50,3 +51,2 @@ "rollup-plugin-node-polyfills": "^0.2.1" | ||
"@rollup/plugin-commonjs": "^25.0.2", | ||
"@types/node": "^18.6.1", | ||
"fluture": "^14.0.0", | ||
@@ -53,0 +53,0 @@ "jsonpath-plus": "^7.2.0", |
@@ -7,17 +7,7 @@ import { arraySorter, pushUniqueKeyOrChange, sorterByPaths, pushUniqueKey, CustomError, pushAt } from './jsUtils.js'; | ||
import { Timeline } from './table/components/timeline.js' | ||
import { performance } from 'node:perf_hooks' | ||
let myGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof this !== 'undefined' ? this : {}; | ||
let performance = myGlobal?.performance | ||
if(performance === undefined) { | ||
try { | ||
performance = (await import('perf_hooks')).performance | ||
}catch(e){} | ||
} | ||
if(performance === undefined) performance = {} | ||
// needed only for debuging | ||
@@ -24,0 +14,0 @@ //import { RE } from './ramdaExt.js'; |
Sorry, the diff of this file is too big to display
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
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
9
141
1
1129017
6
32972
- Removed@types/node@^18.6.1
- Removed@types/node@18.19.50(transitive)
- Removedundici-types@5.26.5(transitive)