fix(core): update
This commit is contained in:
		| @@ -1,8 +1,6 @@ | |||||||
| { | { | ||||||
|   "npmci": { |   "npmci": { | ||||||
|     "npmGlobalTools": [ |     "npmGlobalTools": [], | ||||||
|       "@gitzone/npmts" |  | ||||||
|     ], |  | ||||||
|     "npmAccessLevel": "public" |     "npmAccessLevel": "public" | ||||||
|   }, |   }, | ||||||
|   "gitzone": { |   "gitzone": { | ||||||
|   | |||||||
							
								
								
									
										18170
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										18170
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										16
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								package.json
									
									
									
									
									
								
							| @@ -5,8 +5,9 @@ | |||||||
|   "description": "minimal and fast loading plugin for startup time measuring", |   "description": "minimal and fast loading plugin for startup time measuring", | ||||||
|   "main": "dist_ts/index.js", |   "main": "dist_ts/index.js", | ||||||
|   "typings": "dist_ts/index.d.ts", |   "typings": "dist_ts/index.d.ts", | ||||||
|  |   "type": "module", | ||||||
|   "scripts": { |   "scripts": { | ||||||
|     "test": "(tsrun test/test.ts)", |     "test": "(tstest test/)", | ||||||
|     "build": "(tsbuild --web)" |     "build": "(tsbuild --web)" | ||||||
|   }, |   }, | ||||||
|   "repository": { |   "repository": { | ||||||
| @@ -23,16 +24,15 @@ | |||||||
|   }, |   }, | ||||||
|   "homepage": "https://gitlab.com/pushrocks/early#readme", |   "homepage": "https://gitlab.com/pushrocks/early#readme", | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|     "@gitzone/tsrun": "^1.2.12", |     "@gitzone/tsrun": "^1.2.31", | ||||||
|     "@pushrocks/smartdelay": "^2.0.10", |     "@gitzone/tstest": "^1.0.69", | ||||||
|     "@pushrocks/tapbundle": "^3.2.9", |     "@pushrocks/smartdelay": "^2.0.13", | ||||||
|     "tslint": "^6.1.3", |     "@pushrocks/tapbundle": "^5.0.2" | ||||||
|     "tslint-config-prettier": "^1.18.0" |  | ||||||
|   }, |   }, | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
|     "@gitzone/tsbuild": "^2.1.24", |     "@gitzone/tsbuild": "^2.1.60", | ||||||
|     "@pushrocks/consolecolor": "^2.0.1", |     "@pushrocks/consolecolor": "^2.0.1", | ||||||
|     "@pushrocks/smartpromise": "^3.0.6" |     "@pushrocks/smartpromise": "^3.1.7" | ||||||
|   }, |   }, | ||||||
|   "files": [ |   "files": [ | ||||||
|     "ts/**/*", |     "ts/**/*", | ||||||
|   | |||||||
| @@ -1,8 +1,10 @@ | |||||||
| import { expect, tap } from '@pushrocks/tapbundle'; | import { expect, expectAsync, tap } from '@pushrocks/tapbundle'; | ||||||
| import * as smartdelay from '@pushrocks/smartdelay'; | import * as smartdelay from '@pushrocks/smartdelay'; | ||||||
| import early = require('../ts/index'); |  | ||||||
|  | import * as early from '../ts/index.js' | ||||||
|  |  | ||||||
| tap.test('.start()', async () => { | tap.test('.start()', async () => { | ||||||
|  |   process.env.CLI_CALL_MODULENAME = 'early'; | ||||||
|   early.start('early'); |   early.start('early'); | ||||||
|   await smartdelay.delayFor(2000); |   await smartdelay.delayFor(2000); | ||||||
| }); | }); | ||||||
| @@ -17,7 +19,7 @@ tap.test('hrTime Measurement', async () => { | |||||||
|   await smartdelay.delayFor(1000); |   await smartdelay.delayFor(1000); | ||||||
|   let measuredTime = earlyHr.stop(); |   let measuredTime = earlyHr.stop(); | ||||||
|   console.log(measuredTime); |   console.log(measuredTime); | ||||||
|   return expect(measuredTime.milliSeconds).to.be.greaterThan(999); |   return expect(measuredTime.milliSeconds).toBeGreaterThan(999); | ||||||
| }); | }); | ||||||
|  |  | ||||||
| tap.start(); | tap.start(); | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import * as consolecolor from '@pushrocks/consolecolor'; | import * as consolecolor from '@pushrocks/consolecolor'; | ||||||
| import * as smartpromise from '@pushrocks/smartpromise'; | import * as smartpromise from '@pushrocks/smartpromise'; | ||||||
| import { HrtMeasurement } from './early.hrtMeasurement'; | import { HrtMeasurement } from './early.hrtMeasurement.js'; | ||||||
|  |  | ||||||
| export { HrtMeasurement }; | export { HrtMeasurement }; | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										7
									
								
								tsconfig.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								tsconfig.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | |||||||
|  | { | ||||||
|  |   "compilerOptions": { | ||||||
|  |     "target": "ES2022", | ||||||
|  |     "module": "ES2022", | ||||||
|  |     "moduleResolution": "nodenext" | ||||||
|  |   } | ||||||
|  | } | ||||||
							
								
								
									
										17
									
								
								tslint.json
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								tslint.json
									
									
									
									
									
								
							| @@ -1,17 +0,0 @@ | |||||||
| { |  | ||||||
|   "extends": ["tslint:latest", "tslint-config-prettier"], |  | ||||||
|   "rules": { |  | ||||||
|     "semicolon": [true, "always"], |  | ||||||
|     "no-console": false, |  | ||||||
|     "ordered-imports": false, |  | ||||||
|     "object-literal-sort-keys": false, |  | ||||||
|     "member-ordering": { |  | ||||||
|       "options":{ |  | ||||||
|         "order": [ |  | ||||||
|           "static-method" |  | ||||||
|         ] |  | ||||||
|       } |  | ||||||
|     } |  | ||||||
|   }, |  | ||||||
|   "defaultSeverity": "warning" |  | ||||||
| } |  | ||||||
		Reference in New Issue
	
	Block a user