Skip to content

Commit

Permalink
Revert "[PAY-759] [PAY-758] Add ChatsApi to SDK (#4416)" (#4533)
Browse files Browse the repository at this point in the history
This reverts commit 2e8b21b.
  • Loading branch information
rickyrombo authored Dec 23, 2022
1 parent 2e8b21b commit 1b0e279
Show file tree
Hide file tree
Showing 17 changed files with 47 additions and 1,251 deletions.
20 changes: 0 additions & 20 deletions libs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions libs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"test:integration": "ts-mocha tests/index.js",
"setup": "./scripts/migrate_contracts.sh",
"build": "rollup -c",
"start": "rollup -c -w",
"start:sdk": "rollup -c rollup.sdkbrowser.config.js -w",
"dev": "rollup -c -w",
"lint": "eslint ./src ./types",
"lint:fix": "npm run lint -- --fix",
"typecheck": "tsc --noEmit",
Expand All @@ -44,9 +43,7 @@
"@certusone/wormhole-sdk": "0.1.1",
"@ethersproject/solidity": "5.0.5",
"@improbable-eng/grpc-web-node-http-transport": "0.15.0",
"@noble/secp256k1": "1.7.0",
"@project-serum/anchor": "0.24.1",
"@scure/base": "1.1.1",
"@solana/spl-token": "0.1.8",
"@solana/web3.js": "1.37.1",
"abi-decoder": "2.4.0",
Expand All @@ -57,8 +54,6 @@
"borsh": "0.4.0",
"bs58": "4.0.1",
"cipher-base": "1.0.4",
"cross-fetch": "3.1.5",
"cuid": "2.1.8",
"elliptic": "6.5.4",
"esm": "3.2.25",
"eth-sig-util": "2.5.4",
Expand All @@ -74,7 +69,6 @@
"jsonschema": "1.2.6",
"keccak256": "1.0.2",
"lodash": "4.17.21",
"micro-aes-gcm": "0.3.3",
"node-localstorage": "^1.3.1",
"proper-url-join": "1.2.0",
"rollup-plugin-shim": "^1.0.0",
Expand Down
33 changes: 14 additions & 19 deletions libs/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ const browserLegacyConfig = {
external
}

export const outputConfigs = {
export default [
/**
* SDK
*/
sdkConfig: {
{
input: 'src/index.ts',
output: [
{ file: pkg.main, format: 'cjs', sourcemap: true },
Expand All @@ -122,22 +122,21 @@ export const outputConfigs = {
* SDK bundled for a browser environment (includes polyfills for node libraries)
* Does not include libs but does include polyfills
*/
browserSdkConfig: {
{
input: 'src/sdk/index.ts',
output: [
{ file: 'dist/index.browser.cjs.js', format: 'cjs', sourcemap: true },
{ file: 'dist/index.browser.esm.js', format: 'es', sourcemap: true }
],
...browserConfig,
// eslint-disable-next-line eqeqeq
watch: process.env.WATCH_BROWSER != 'false'
watch: process.env.WATCH_BROWSER != "false",
},

/**
* SDK bundled for prebuilt package file to be used in browser
* Does not include libs but does include polyfills and all deps/dev deps
*/
browserSdkConfigPolyfill: {
{
input: 'src/sdk/sdkBrowserDist.ts',
output: [
{
Expand All @@ -152,41 +151,37 @@ export const outputConfigs = {
}
],
...browserDistFileConfig,
// eslint-disable-next-line eqeqeq
watch: process.env.WATCH_BROWSER != 'false'
watch: process.env.WATCH_BROWSER != "false",
},

/**
* Legacy bundle for a browser environment
* Includes libs but does not include polyfills
*/
legacyConfig: {
{
input: 'src/legacy.ts',
output: [{ file: 'dist/legacy.js', format: 'cjs', sourcemap: true }],
...browserLegacyConfig,
// eslint-disable-next-line eqeqeq
watch: process.env.WATCH_BROWSER != 'false'
watch: process.env.WATCH_BROWSER != "false",
},

/**
* ReactNative bundle used for our mobile app
* Includes a modified version of AudiusLibs with solana dependencies removed
*/
reactNativeConfig: {
{
input: 'src/native-libs.ts',
output: [{ file: 'dist/native-libs.js', format: 'es', sourcemap: true }],
...browserLegacyConfig,
// eslint-disable-next-line eqeqeq
watch: process.env.WATCH_BROWSER != 'false'
watch: process.env.WATCH_BROWSER != "false",
},

/**
* core (used for eager requests)
*/
coreConfig: {
{
input: 'src/core.ts',
output: [{ file: 'dist/core.js', format: 'es', sourcemap: true }],
...commonConfig
...commonConfig,
}
}

export default Object.values(outputConfigs)
]
3 changes: 0 additions & 3 deletions libs/rollup.sdkbrowser.config.js

This file was deleted.

135 changes: 0 additions & 135 deletions libs/src/sdk/api/HealthCheckResponseData.ts

This file was deleted.

Loading

0 comments on commit 1b0e279

Please sign in to comment.