fix(core): update
This commit is contained in:
parent
330fed31cc
commit
a03ec23bc9
@ -120,7 +120,7 @@ pages:
|
|||||||
stage: metadata
|
stage: metadata
|
||||||
script:
|
script:
|
||||||
- npmci node install lts
|
- npmci node install lts
|
||||||
- npmci command npm install -g @gitzone/tsdoc
|
- npmci command npm install -g @git.zone/tsdoc
|
||||||
- npmci npm prepare
|
- npmci npm prepare
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci command tsdoc
|
- npmci command tsdoc
|
||||||
|
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@ -8,7 +8,7 @@
|
|||||||
"args": [
|
"args": [
|
||||||
"${relativeFile}"
|
"${relativeFile}"
|
||||||
],
|
],
|
||||||
"runtimeArgs": ["-r", "@gitzone/tsrun"],
|
"runtimeArgs": ["-r", "@git.zone/tsrun"],
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
"protocol": "inspector",
|
"protocol": "inspector",
|
||||||
"internalConsoleOptions": "openOnSessionStart"
|
"internalConsoleOptions": "openOnSessionStart"
|
||||||
@ -20,7 +20,7 @@
|
|||||||
"args": [
|
"args": [
|
||||||
"test/test.ts"
|
"test/test.ts"
|
||||||
],
|
],
|
||||||
"runtimeArgs": ["-r", "@gitzone/tsrun"],
|
"runtimeArgs": ["-r", "@git.zone/tsrun"],
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
"protocol": "inspector",
|
"protocol": "inspector",
|
||||||
"internalConsoleOptions": "openOnSessionStart"
|
"internalConsoleOptions": "openOnSessionStart"
|
||||||
|
14
package.json
14
package.json
@ -13,15 +13,15 @@
|
|||||||
"build": "(tsbuild --web)"
|
"build": "(tsbuild --web)"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.65",
|
"@git.zone/tsbuild": "^2.1.66",
|
||||||
"@gitzone/tsrun": "^1.2.39",
|
"@git.zone/tsrun": "^1.2.44",
|
||||||
"@gitzone/tstest": "^1.0.74",
|
"@git.zone/tstest": "^1.0.77",
|
||||||
"@pushrocks/tapbundle": "^5.0.4",
|
"@push.rocks/tapbundle": "^5.0.8",
|
||||||
"@types/node": "^18.15.11"
|
"@types/node": "^20.12.12"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartenv": "^5.0.5",
|
"@push.rocks/smartenv": "^5.0.5",
|
||||||
"@pushrocks/smarthash": "^3.0.2"
|
"@push.rocks/smarthash": "^3.0.2"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 1 chrome versions"
|
"last 1 chrome versions"
|
||||||
|
8285
pnpm-lock.yaml
generated
8285
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
|||||||
import { expect, tap } from '@pushrocks/tapbundle';
|
import { expect, tap } from '@push.rocks/tapbundle';
|
||||||
import * as isohash from '../ts/index.js';
|
import * as isohash from '../ts/index.js';
|
||||||
|
|
||||||
tap.test('first test', async () => {
|
tap.test('first test', async () => {
|
||||||
@ -9,4 +9,4 @@ tap.test('first test', async () => {
|
|||||||
console.log(hashResult);
|
console.log(hashResult);
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.start();
|
export default tap.start();
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* autocreated commitinfo by @pushrocks/commitinfo
|
* autocreated commitinfo by @pushrocks/commitinfo
|
||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/isohash',
|
name: '@push.rocks/isohash',
|
||||||
version: '2.0.1',
|
version: '2.0.2',
|
||||||
description: 'a hash package that works cross environment'
|
description: 'A cross-environment hash package supporting both browser and Node.js environments.'
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ export const sha256FromString = async (stringArg: string): Promise<string> => {
|
|||||||
const result = hex(hash);
|
const result = hex(hash);
|
||||||
return result;
|
return result;
|
||||||
} else if (smartenv.isNode) {
|
} else if (smartenv.isNode) {
|
||||||
const smarthashModule: typeof import('@pushrocks/smarthash') = await smartenv.getSafeNodeModule('@pushrocks/smarthash');
|
const smarthashModule: typeof import('@push.rocks/smarthash') = await smartenv.getSafeNodeModule('@push.rocks/smarthash');
|
||||||
const result = await smarthashModule.sha256FromString(stringArg);
|
const result = await smarthashModule.sha256FromString(stringArg);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// pushrocks scope
|
// pushrocks scope
|
||||||
import * as smartenv from '@pushrocks/smartenv';
|
import * as smartenv from '@push.rocks/smartenv';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
smartenv
|
smartenv
|
||||||
|
Loading…
Reference in New Issue
Block a user