@prosopo/server 0.2.6 → 0.2.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/server",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "NodeJS package for server side communication with the prosopo captcha client",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -37,11 +37,11 @@
37
37
  "@polkadot/keyring": "12.3.2",
38
38
  "@polkadot/rpc-provider": "10.9.1",
39
39
  "@polkadot/types": "10.9.1",
40
- "@prosopo/api": "0.2.6",
41
- "@prosopo/contract": "0.2.6",
42
- "@prosopo/procaptcha": "0.2.6",
43
- "@prosopo/captcha-contract": "0.2.6",
44
- "@prosopo/types": "0.2.6"
40
+ "@prosopo/api": "0.2.8",
41
+ "@prosopo/contract": "0.2.8",
42
+ "@prosopo/procaptcha": "0.2.8",
43
+ "@prosopo/captcha-contract": "0.2.8",
44
+ "@prosopo/types": "0.2.8"
45
45
  },
46
46
  "devDependencies": {
47
47
  "tslib": "2.6.2",
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const common = require("@prosopo/common");
4
- const getPublicProsopoPair = async (network) => {
5
- const accountNetworkMap = {
6
- rococo: "open poet tennis test nice immune scorpion flag cement surge effort canal"
7
- // Prosopo rococo shared public account
8
- };
9
- const pairType = "sr25519";
10
- const ss58Format = 42;
11
- const prosopoSharedAccountSecret = accountNetworkMap[network];
12
- return await common.getPair(pairType, ss58Format, prosopoSharedAccountSecret);
13
- };
14
- exports.getPublicProsopoPair = getPublicProsopoPair;
@@ -1,3 +0,0 @@
1
- export type PublicAccountNetwork = 'rococo';
2
- export declare const getPublicProsopoPair: (network: PublicAccountNetwork) => Promise<import("@polkadot/keyring/types").KeyringPair>;
3
- //# sourceMappingURL=publicProsopoPair.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"publicProsopoPair.d.ts","sourceRoot":"","sources":["../src/publicProsopoPair.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAA;AAE3C,eAAO,MAAM,oBAAoB,YAAmB,oBAAoB,2DAUvE,CAAA"}
@@ -1,11 +0,0 @@
1
- import { getPair } from '@prosopo/common';
2
- export const getPublicProsopoPair = async (network) => {
3
- const accountNetworkMap = {
4
- rococo: 'open poet tennis test nice immune scorpion flag cement surge effort canal', // Prosopo rococo shared public account
5
- };
6
- const pairType = 'sr25519';
7
- const ss58Format = 42;
8
- const prosopoSharedAccountSecret = accountNetworkMap[network];
9
- return await getPair(pairType, ss58Format, prosopoSharedAccountSecret);
10
- };
11
- //# sourceMappingURL=publicProsopoPair.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"publicProsopoPair.js","sourceRoot":"","sources":["../src/publicProsopoPair.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAIzC,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EAAE,OAA6B,EAAE,EAAE;IACxE,MAAM,iBAAiB,GAAG;QACtB,MAAM,EAAE,2EAA2E,EAAE,uCAAuC;KAC/H,CAAA;IAED,MAAM,QAAQ,GAAG,SAAwB,CAAA;IACzC,MAAM,UAAU,GAAG,EAAE,CAAA;IACrB,MAAM,0BAA0B,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAA;IAE7D,OAAO,MAAM,OAAO,CAAC,QAAQ,EAAE,UAAU,EAAE,0BAA0B,CAAC,CAAA;AAC1E,CAAC,CAAA"}