Felicio Mununga 67b12fceb0
Add url data encoding (#345)
* add @scure/base

* add link-preview.proto

* add prototype of encode function

* add tests

* add test cases

* update proto

* more

* more

* add missing community chat description to proto

* more

* more

* add browser brotli and lz-string

* move encoding comparison

* add sinlge encoding

* split encoding

* add decoding

* update .prettierignore

* exclude comparison

* remove comparison tests

* Update packages/status-js/src/utils/encode-url-data.test.ts

* Update packages/status-js/src/utils/encode-url-data.test.ts

* remove checksum

* ensure channel is serializable

* Update .prettierignore

* update protos

* add creaet-url.ts

* set links

* comment

* update protos

* add nominal type for EncodedUrlData

* add sign/verify fns

* export fns from index

* set zlib as external module

* add tag indices

* encode channel uuid

* use `.toJson()` with type assertion

* use uppercase url

* split url creating fns

* fix typo

* describe test suite

* use getters

* fix nominal type

* remove `node:` prefix from `zlib` import

* remove todos?:

* rename URLProps to URLParams

* fix package.json after rebase
2023-03-21 11:05:59 +01:00

57 lines
1.4 KiB
JSON

{
"name": "@status-im/js",
"version": "0.1.1",
"license": "MIT OR Apache-2.0",
"type": "module",
"exports": {
"types": "./dist/types/index.d.ts",
"import": "./dist/index.es.js",
"default": "./dist/index.es.js"
},
"module": "dist/index.es.js",
"types": "dist/types/index.d.ts",
"repository": {
"url": "https://github.com/status-im/status-web.git",
"directory": "packages/status-js",
"type": "git"
},
"bugs": {
"url": "https://github.com/status-im/status-web/issues"
},
"scripts": {
"dev": "vite build --watch --mode development",
"build": "vite build",
"postbuild": "yarn typegen",
"test": "vitest",
"typecheck": "tsc",
"typegen": "tsc --noEmit false --emitDeclarationOnly || true",
"lint": "eslint src",
"format": "prettier --write src",
"protos:list": "buf ls-files src/protos",
"protos:lint": "buf lint src/protos",
"protos": "buf generate src/protos",
"clean": "rm -rf dist node_modules .turbo"
},
"dependencies": {
"@bufbuild/protobuf": "^1.0.0",
"@scure/base": "^1.1.1",
"ethereum-cryptography": "^1.0.3",
"js-waku": "^0.30.0",
"multiformats": "^11.0.1"
},
"devDependencies": {
"@bufbuild/protoc-gen-es": "^1.0.0"
},
"files": [
"dist/",
"!dist/**/*.map",
"!dist/tsconfig.tsbuildinfo",
"LICENSE-MIT",
"LICENSE-APACHE-v2",
"package.json"
],
"publishConfig": {
"access": "public"
}
}