New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@therms/rpc-client

Package Overview
Dependencies
Maintainers
7
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@therms/rpc-client - npm Package Compare versions

Comparing version 2.2.3 to 2.3.0

dist/umd.js

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [2.3.0](http://bitbucket.org/thermsio/rpc-client-ts/compare/v2.2.3...v2.3.0) (2022-03-14)
### Features
* add UMD bundle to build ([b921eb2](http://bitbucket.org/thermsio/rpc-client-ts/commits/b921eb283cca39404601a5d2db079f998893135a))
## [2.2.3](http://bitbucket.org/thermsio/rpc-client-ts/compare/v2.2.2...v2.2.3) (2022-01-19)

@@ -2,0 +9,0 @@

6

package.json
{
"name": "@therms/rpc-client",
"version": "2.2.3",
"version": "2.3.0",
"description": "RPC framework, browser client lib",
"private": false,
"main": "./dist/cjs.js",
"browser": "./dist/umd.js",
"module": "./dist/index.js",

@@ -43,4 +44,7 @@ "types": "./dist/index.d.ts",

"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2",
"semantic-release": "^18.0.0",

@@ -47,0 +51,0 @@ "semantic-release-slack-bot": "^3.0.0",

@@ -15,2 +15,16 @@ # @therms/rpc-client

UMD browser environment, the variable name will be `RPCClient`:
```bash
<body>
...
<script src="https://unpkg.com/@therms/rpc-client/dist/umd.js" type="text/javascript"></script>
<script>
const rpcClient = new RPCClient(options)
</script>
</body>
```
## Client

@@ -17,0 +31,0 @@

72

rollup.config.js
import autoExternal from 'rollup-plugin-auto-external'
import typescript from '@rollup/plugin-typescript'
import sourcemaps from 'rollup-plugin-sourcemaps'
import commonjs from 'rollup-plugin-commonjs'
import nodeResolve from 'rollup-plugin-node-resolve'
import { terser } from 'rollup-plugin-terser'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
file: 'dist/cjs.js',
format: 'cjs',
export default [
{
input: 'src/index.ts',
output: [
{
file: 'dist/cjs.js',
format: 'cjs',
sourcemap: true,
},
{
dir: 'dist/',
format: 'es',
preserveModules: true,
preserveModulesRoot: 'src/',
sourcemap: true,
},
],
external: [...Object.keys(pkg.peerDependencies || {})],
plugins: [
autoExternal(),
typescript(),
// resolve sourcemaps to original code
sourcemaps(),
],
},
{
input: 'src/index.ts',
output: {
file: 'dist/umd.js',
format: 'umd',
name: 'RPCClient',
sourcemap: true,
},
{
dir: 'dist/',
format: 'es',
preserveModules: true,
preserveModulesRoot: 'src/',
sourcemap: true,
},
],
external: [...Object.keys(pkg.peerDependencies || {})],
plugins: [
autoExternal(),
typescript(),
// resolve sourcemaps to original code
sourcemaps(),
],
}
plugins: [
commonjs({
// non-CommonJS modules will be ignored, but you can also
// specifically include/exclude files
// include: ['./index.js', 'node_modules/**'],
}),
nodeResolve(),
typescript(),
// resolve sourcemaps to original code
sourcemaps(),
terser(),
],
},
]

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc