fix(core): update

This commit is contained in:
Philipp Kunz 2024-05-28 12:40:32 +02:00
parent 330fed31cc
commit a03ec23bc9
8 changed files with 5289 additions and 3030 deletions

View File

@ -120,7 +120,7 @@ pages:
stage: metadata
script:
- npmci node install lts
- npmci command npm install -g @gitzone/tsdoc
- npmci command npm install -g @git.zone/tsdoc
- npmci npm prepare
- npmci npm install
- npmci command tsdoc

4
.vscode/launch.json vendored
View File

@ -8,7 +8,7 @@
"args": [
"${relativeFile}"
],
"runtimeArgs": ["-r", "@gitzone/tsrun"],
"runtimeArgs": ["-r", "@git.zone/tsrun"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
@ -20,7 +20,7 @@
"args": [
"test/test.ts"
],
"runtimeArgs": ["-r", "@gitzone/tsrun"],
"runtimeArgs": ["-r", "@git.zone/tsrun"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"

View File

@ -13,15 +13,15 @@
"build": "(tsbuild --web)"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.65",
"@gitzone/tsrun": "^1.2.39",
"@gitzone/tstest": "^1.0.74",
"@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^18.15.11"
"@git.zone/tsbuild": "^2.1.66",
"@git.zone/tsrun": "^1.2.44",
"@git.zone/tstest": "^1.0.77",
"@push.rocks/tapbundle": "^5.0.8",
"@types/node": "^20.12.12"
},
"dependencies": {
"@pushrocks/smartenv": "^5.0.5",
"@pushrocks/smarthash": "^3.0.2"
"@push.rocks/smartenv": "^5.0.5",
"@push.rocks/smarthash": "^3.0.2"
},
"browserslist": [
"last 1 chrome versions"

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
import { expect, tap } from '@pushrocks/tapbundle';
import { expect, tap } from '@push.rocks/tapbundle';
import * as isohash from '../ts/index.js';
tap.test('first test', async () => {
@ -9,4 +9,4 @@ tap.test('first test', async () => {
console.log(hashResult);
});
tap.start();
export default tap.start();

View File

@ -2,7 +2,7 @@
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/isohash',
version: '2.0.1',
description: 'a hash package that works cross environment'
name: '@push.rocks/isohash',
version: '2.0.2',
description: 'A cross-environment hash package supporting both browser and Node.js environments.'
}

View File

@ -30,7 +30,7 @@ export const sha256FromString = async (stringArg: string): Promise<string> => {
const result = hex(hash);
return result;
} 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);
return result;
}

View File

@ -1,5 +1,5 @@
// pushrocks scope
import * as smartenv from '@pushrocks/smartenv';
import * as smartenv from '@push.rocks/smartenv';
export {
smartenv