Skip to content

Commit

Permalink
Merge pull request #124 from casper-ecosystem/develop-next
Browse files Browse the repository at this point in the history
casper-js-sdk 2.7.2
  • Loading branch information
hoffmannjan authored Nov 26, 2021
2 parents 1c78106 + 836fea1 commit 5832384
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to casper-js-sdk.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 2.7.2

### Fixed

- Fix for bundling all of the existing types defined in the library.

## 2.7.1

### Fixed
Expand Down
46 changes: 45 additions & 1 deletion package-lock.json

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

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "casper-js-sdk",
"version": "2.7.1",
"version": "2.7.2",
"license": "Apache 2.0",
"description": "SDK to interact with the Casper blockchain",
"homepage": "https://github.com/casper-ecosystem/casper-js-sdk#README.md",
Expand Down Expand Up @@ -55,6 +55,7 @@
"buffer": "^6.0.3",
"chai": "^4.2.0",
"concurrently": "^6.0.0",
"copy-webpack-plugin": "^9.0.1",
"crypto-browserify": "^3.12.0",
"eslint": "^7.21.0",
"eslint-config-prettier": "^8.1.0",
Expand All @@ -71,17 +72,17 @@
"pretty-quick": "^1.11.1",
"process": "^0.11.10",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"ts-loader": "^8.0.17",
"ts-node": "^8.4.1",
"ts-protoc-gen": "^0.10.0",
"tsconfig-paths": "^3.9.0",
"tslint": "^6.1.3",
"typedoc": "^0.17.8",
"typescript": "^3.9.9",
"webpack-cli": "^4.5.0",
"webpack-node-externals": "^2.5.2",
"url": "^0.11.0",
"stream-http": "^3.2.0"
"webpack-cli": "^4.5.0",
"webpack-node-externals": "^2.5.2"
},
"dependencies": {
"@ethersproject/bignumber": "^5.0.8",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/RuntimeArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
resultHelper
} from './CLValue';
import { concat } from '@ethersproject/bytes';
import { jsonMember, jsonObject } from 'typedjson';
import { jsonMapMember, jsonObject } from 'typedjson';

export class NamedArg implements ToBytes {
constructor(public name: string, public value: CLValue) {}
Expand Down Expand Up @@ -58,7 +58,7 @@ const serRA = (map: Map<string, CLValue>) => {

@jsonObject()
export class RuntimeArgs implements ToBytes {
@jsonMember({
@jsonMapMember(String, CLValue, {
serializer: serRA,
deserializer: desRA
})
Expand Down
8 changes: 8 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const webpack = require('webpack');
const path = require('path');
const nodeExternals = require('webpack-node-externals');
const copyPlugin = require("copy-webpack-plugin");

const common = {
entry: './src/index.ts',
Expand All @@ -22,6 +23,13 @@ const common = {
const serverConfig = {
...common,
target: 'node',
plugins: [
new copyPlugin({
patterns: [
{ from: "src/@types", to: "@types" },
],
}),
],
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'lib.node.js',
Expand Down

0 comments on commit 5832384

Please sign in to comment.