Skip to content

Commit

Permalink
fix(deps): Downgraded uint8arrays due to export config clash
Browse files Browse the repository at this point in the history
  • Loading branch information
Eengineer1 committed Oct 27, 2022
1 parent bea288d commit 2e30906
Show file tree
Hide file tree
Showing 10 changed files with 6,229 additions and 2,948 deletions.
9,142 changes: 6,214 additions & 2,928 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"test": "jest --passWithNoTests --maxWorkers 1 --detectOpenHandles",
"test": "jest --passWithNoTests --maxWorkers 1 --maxConcurrency 1",
"test:watch": "jest --passWithNoTests --watch",
"build": "tsc"
},
Expand Down Expand Up @@ -36,10 +36,11 @@
"@types/node": "^18.11.5",
"@types/uuid": "^8.3.4",
"conventional-changelog-conventionalcommits": "^5.0.0",
"jest": "^28.1.3",
"ts-jest": "^28.0.8",
"jest": "^29.2.2",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"typescript": "^4.8.4"
"typescript": "^4.8.4",
"uint8arrays": "^3.1.1"
},
"dependencies": {
"@cheqd/ts-proto": "^1.0.14",
Expand All @@ -54,7 +55,6 @@
"cosmjs-types": "^0.5.2",
"did-jwt": "^6.9.0",
"multiformats": "^9.9.0",
"uint8arrays": "^4.0.2",
"uuid": "^9.0.0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion src/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { MsgCreateDidPayload, SignInfo, MsgUpdateDidPayload } from '@cheqd/ts-pr
import { DidStdFee, ISignInputs, TSignerAlgo, VerificationMethods } from './types';
import { VerificationMethod } from '@cheqd/ts-proto/cheqd/v1/did'
import { base64ToBytes, EdDSASigner, hexToBytes, Signer, ES256Signer, ES256KSigner } from 'did-jwt';
import { toString } from 'uint8arrays/to-string'
import { toString } from 'uint8arrays'
import { assert, assertDefined } from '@cosmjs/utils'
import { encodeSecp256k1Pubkey } from '@cosmjs/amino'
import { Int53 } from '@cosmjs/math'
Expand Down
3 changes: 1 addition & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import {
CheqdNetwork,
IVerificationKeys
} from "./types"
import { fromString } from 'uint8arrays/from-string'
import { toString } from 'uint8arrays/to-string'
import { fromString, toString } from 'uint8arrays'
import { bases } from "multiformats/basics"
import { base64ToBytes } from "did-jwt"
import { generateKeyPair, KeyPair } from '@stablelib/ed25519'
Expand Down
5 changes: 2 additions & 3 deletions tests/modules/did.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { MsgUpdateDidPayload } from "@cheqd/ts-proto/cheqd/v1/tx"
import { DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"
import { DeliverTxResponse } from "@cosmjs/stargate"
import { fromString } from 'uint8arrays/from-string'
import { toString } from 'uint8arrays/to-string'
import { fromString, toString } from 'uint8arrays'
import { DIDModule } from "../../src"
import { createDefaultCheqdRegistry } from "../../src/registry"
import { CheqdSigningStargateClient } from "../../src/signer"
import { DidStdFee, ISignInputs, MethodSpecificIdAlgo, VerificationMethods } from "../../src/types"
import { createDidPayload, createDidVerificationMethod, createKeyPairBase64, createVerificationKeys, exampleCheqdNetwork, faucet } from "../testutils.test"

const defaultAsyncTxTimeout = 20000
const defaultAsyncTxTimeout = 30000

describe('DIDModule', () => {
describe('constructor', () => {
Expand Down
5 changes: 2 additions & 3 deletions tests/modules/resource.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DirectSecp256k1HdWallet, GeneratedType } from "@cosmjs/proto-signing"
import { DeliverTxResponse } from "@cosmjs/stargate"
import { fromString } from 'uint8arrays/from-string'
import { toString } from 'uint8arrays/to-string'
import { fromString, toString } from 'uint8arrays'
import { DIDModule, ResourceModule } from "../../src"
import { createDefaultCheqdRegistry } from "../../src/registry"
import { CheqdSigningStargateClient } from "../../src/signer"
Expand All @@ -10,7 +9,7 @@ import { createDidPayload, createDidVerificationMethod, createKeyPairBase64, cre
import { MsgCreateResourcePayload } from '@cheqd/ts-proto/resource/v1/tx';
import { randomUUID } from "crypto"

const defaultAsyncTxTimeout = 20000
const defaultAsyncTxTimeout = 30000

describe('ResourceModule', () => {
describe('constructor', () => {
Expand Down
3 changes: 1 addition & 2 deletions tests/signer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { base64ToBytes, EdDSASigner } from "did-jwt"
import { typeUrlMsgCreateDid } from '../src/modules/did'
import { CheqdSigningStargateClient } from "../src/signer"
import { ISignInputs, MethodSpecificIdAlgo, VerificationMethods } from "../src/types"
import { fromString } from 'uint8arrays/from-string'
import { toString } from 'uint8arrays/to-string'
import { fromString, toString } from 'uint8arrays'
import { createDidPayload, createDidVerificationMethod, createKeyPairBase64, createVerificationKeys, exampleCheqdNetwork, faucet } from "./testutils.test"
import { verify } from "@stablelib/ed25519"

Expand Down
3 changes: 1 addition & 2 deletions tests/testutils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { MsgCreateDidPayload } from "@cheqd/ts-proto/cheqd/v1/tx"
import { CheqdNetwork, IKeyPair, IVerificationKeys, MethodSpecificIdAlgo, TMethodSpecificId, TVerificationKey, TVerificationKeyPrefix, VerificationMethods } from "../src/types"
import { bases } from 'multiformats/basics'
import { base64ToBytes } from "did-jwt"
import { fromString } from 'uint8arrays/from-string'
import { toString } from 'uint8arrays/to-string'
import { fromString, toString } from 'uint8arrays'
import { generateKeyPair, KeyPair } from '@stablelib/ed25519'
import { GasPrice } from "@cosmjs/stargate"
import { v4 } from 'uuid'
Expand Down
2 changes: 1 addition & 1 deletion tests/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TImportableEd25519Key, createSignInputsFromImportableEd25519Key } from '../src/utils'
import { createDidVerificationMethod, createVerificationKeys, createKeyPairRaw } from './testutils.test'
import { toString } from 'uint8arrays/to-string'
import { toString } from 'uint8arrays'
import { IKeyPair, MethodSpecificIdAlgo, VerificationMethods } from '../src/types'

describe('createSignInputsFromImportableEd25519Key', () => {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */

/* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
Expand Down

0 comments on commit 2e30906

Please sign in to comment.