@mainsail/crypto-hash-bcrypto 0.0.1-evm.2 → 0.0.1-evm.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hash.factory.d.ts","sourceRoot":"","sources":["../source/hash.factory.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"hash.factory.d.ts","sourceRoot":"","sources":["../source/hash.factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,qBACa,WAAY,YAAW,SAAS,CAAC,MAAM,CAAC,WAAW;IAClD,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IAI5D,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IAIzD,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;CAGvE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAI7C,qBACa,eAAgB,SAAQ,SAAS,CAAC,eAAe;IAChD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAOtC"}
|
package/distribution/index.js
CHANGED
@@ -1,12 +1,23 @@
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
+
};
|
7
|
+
import { injectable } from "@mainsail/container";
|
1
8
|
import { Identifiers } from "@mainsail/contracts";
|
2
9
|
import { Providers } from "@mainsail/kernel";
|
3
10
|
import { HashFactory } from "./hash.factory.js";
|
4
|
-
|
11
|
+
let ServiceProvider = class ServiceProvider extends Providers.ServiceProvider {
|
5
12
|
async register() {
|
6
13
|
this.app.bind(Identifiers.Cryptography.Hash.Size.HASH256).toConstantValue(32);
|
7
14
|
this.app.bind(Identifiers.Cryptography.Hash.Size.RIPEMD160).toConstantValue(20);
|
8
15
|
this.app.bind(Identifiers.Cryptography.Hash.Size.SHA256).toConstantValue(32);
|
9
16
|
this.app.bind(Identifiers.Cryptography.Hash.Factory).to(HashFactory).inSingletonScope();
|
10
17
|
}
|
11
|
-
}
|
18
|
+
};
|
19
|
+
ServiceProvider = __decorate([
|
20
|
+
injectable()
|
21
|
+
], ServiceProvider);
|
22
|
+
export { ServiceProvider };
|
12
23
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGzC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,SAAS,CAAC,eAAe;IACtD,KAAK,CAAC,QAAQ;QACpB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QAC9E,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QAChF,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QAE7E,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACzF,CAAC;CACD,CAAA;AARY,eAAe;IAD3B,UAAU,EAAE;GACA,eAAe,CAQ3B"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mainsail/crypto-hash-bcrypto",
|
3
|
-
"version": "0.0.1-evm.
|
3
|
+
"version": "0.0.1-evm.20",
|
4
4
|
"description": "Hashing powered by bcrypto for the Mainsail blockchain",
|
5
5
|
"license": "GPL-3.0-only",
|
6
6
|
"contributors": [],
|
@@ -12,12 +12,12 @@
|
|
12
12
|
],
|
13
13
|
"dependencies": {
|
14
14
|
"bcrypto": "5.5.2",
|
15
|
-
"@mainsail/container": "0.0.1-evm.
|
16
|
-
"@mainsail/
|
17
|
-
"@mainsail/
|
15
|
+
"@mainsail/container": "0.0.1-evm.20",
|
16
|
+
"@mainsail/kernel": "0.0.1-evm.20",
|
17
|
+
"@mainsail/contracts": "0.0.1-evm.20"
|
18
18
|
},
|
19
19
|
"devDependencies": {
|
20
|
-
"uvu": "
|
20
|
+
"uvu": "0.5.6"
|
21
21
|
},
|
22
22
|
"engines": {
|
23
23
|
"node": ">=20.x"
|
@@ -28,7 +28,7 @@
|
|
28
28
|
"clean": "del distribution",
|
29
29
|
"release": "pnpm publish --access public",
|
30
30
|
"test": "pnpm run uvu source .test.ts",
|
31
|
-
"test:coverage": "c8 pnpm run test",
|
31
|
+
"test:coverage": "c8 -r=text -r=lcov --all pnpm run test",
|
32
32
|
"test:coverage:html": "c8 -r html --all pnpm run test",
|
33
33
|
"test:file": "pnpm run uvu source",
|
34
34
|
"uvu": "tsx --tsconfig ../../tsconfig.test.json ./node_modules/uvu/bin.js"
|