@axelar-network/axelarjs-types
Advanced tools
Comparing version 0.28.0-alpha.6 to 0.32.2
{ | ||
"name": "@axelar-network/axelarjs-types", | ||
"version": "0.28.0-alpha.6", | ||
"description": "JS and TS types relating to Protocol Buffers used by AxelarJS-SDK and other related projects", | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/axelarnetwork/axelarjs-types" | ||
"version": "0.32.2", | ||
"description": "Axelarcore supporting protobuf types", | ||
"files": [ | ||
"build", | ||
"cosmos", | ||
"gogoproto", | ||
"google", | ||
"sifnode" | ||
], | ||
"exports": { | ||
"./*": { | ||
"import": "./build/module/*.js", | ||
"require": "./build/commonjs/*.js" | ||
} | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"./build/module/*" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"axelar/", | ||
"cosmos/", | ||
"google/", | ||
"ibc/" | ||
], | ||
"scripts": { | ||
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"", | ||
"codegen": "./scripts/codegen-axelar-sdk.sh && yarn format", | ||
"prepare": "./scripts/prepare.sh", | ||
"build": "tsc && yarn prepare" | ||
"sync": "rimraf proto && degit axelarnetwork/axelar-core/proto/axelar#${TAG:-'main'} proto/axelar && degit axelarnetwork/axelar-core/third_party/proto#${TAG:-'main'} proto/third_party", | ||
"codegen": "rimraf src/generated/proto/* && protoc -I=proto -I=proto/third_party proto/axelar/**/**/*.proto --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=src --ts_proto_opt='esModuleInterop=true,forceLong=long,useOptionals=messages'", | ||
"build": "rimraf build && pnpm tsc -m commonjs --outDir build/commonjs && pnpm tsc -m esnext --outDir build/module && cp -Rf build/commonjs/* .", | ||
"compile": "pnpm tsc --noEmit" | ||
}, | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"long": "^4.0.0", | ||
"protobufjs": "~6.11.2" | ||
"long": "^5.2.0", | ||
"protobufjs": "^7.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/long": "^4.0.1", | ||
"@types/node": "^15.6.2", | ||
"prettier": "^2.6", | ||
"ts-proto": "^1.110", | ||
"typescript": "~4.4" | ||
}, | ||
"packageManager": "yarn@3.1.0" | ||
"@tsconfig/node16-strictest-esm": "^1.0.3", | ||
"degit": "^2.8.4", | ||
"rimraf": "^4.1.3", | ||
"ts-proto": "^1.121.5", | ||
"typescript": "4.8.4" | ||
} | ||
} |
@@ -1,26 +0,22 @@ | ||
# axelarjs-types | ||
# @sifchain/proto-types | ||
## Maintenance | ||
JS and TS types relating to Protocol Buffers used by [SifNode](https://github.com/Sifchain/sifnode) and other related projects | ||
This section is for maintainers of this repo, not users. | ||
## Dependencies | ||
### Getting started | ||
To generate JS/TS code from protocol buufers, you need to install: | ||
```sh | ||
# Pull external code | ||
git submodule init | ||
git submodule update | ||
- https://formulae.brew.sh/formula/protobuf#default | ||
# Install dependencies | ||
yarn install | ||
You can use Brew on macOS: | ||
# Setup SDK for IDE support (see https://next.yarnpkg.com/getting-started/editor-sdks) | ||
yarn dlx @yarnpkg/sdks vscode | ||
``` | ||
brew install protobuf | ||
``` | ||
### Rebuilding types | ||
## Rebuilding types | ||
```sh | ||
yarn codegen # Generate .ts files into ./src | ||
yarn build # Build .js/.d.ts files | ||
pnpm syncProto # sync protobuf definition files from sifnode | ||
pnpm codegen # generate .js/.d.ts files | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13196
3
0
23
1
3
+ Addedlong@5.2.3(transitive)
+ Addedprotobufjs@7.4.0(transitive)
- Removed@types/long@4.0.2(transitive)
- Removedlong@4.0.0(transitive)
- Removedprotobufjs@6.11.4(transitive)
Updatedlong@^5.2.0
Updatedprotobufjs@^7.0.0