Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(package): build es version compatible with node #1371

Merged
merged 2 commits into from
Jan 24, 2022

Conversation

davidyuk
Copy link
Member

depends on #1369 (needed for cli)

So, after this would be possible to do:

import { Crypto } from '@aeternity/aepp-sdk/es/index.mjs'

console.log(Crypto.generateKeyPair())

and execute it using plain node:

$ node test.mjs
{
  publicKey: 'ak_jnZsCzXTKdGDkdvSpExo46GwuWGv84CkzcvEtd6XdV98gLjd8',
  secretKey: 'cb8556c8ff170c0075c3a8bdfa0343c83782e1ccbca0e7842a0caaee92c10fce61266723868d53aab664039e4088d72df242a1510f2bab2e9c67dbeb768ac1ad'
}
$ node --version                                            
v16.13.0

@codecov
Copy link

codecov bot commented Dec 17, 2021

Codecov Report

Merging #1371 (480c747) into develop (955fe13) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1371      +/-   ##
===========================================
+ Coverage    88.18%   88.26%   +0.07%     
===========================================
  Files           56       56              
  Lines         3098     3101       +3     
  Branches        39       39              
===========================================
+ Hits          2732     2737       +5     
+ Misses         345      343       -2     
  Partials        21       21              
Impacted Files Coverage Δ
src/contract/aci/index.js 95.91% <100.00%> (+0.04%) ⬆️
src/tx/builder/helpers.js 98.73% <100.00%> (+0.01%) ⬆️
src/utils/async-init.js 93.75% <100.00%> (+0.89%) ⬆️
src/utils/keystore.js 96.42% <100.00%> (-0.07%) ⬇️
src/channel/handlers.js 78.97% <0.00%> (+0.60%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 955fe13...480c747. Read the comment docs.

fetch-depth: 100
- if: github.ref != 'refs/heads/develop'
run: git branch develop origin/develop
fetch-depth: 50
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need fetch-depth at all?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah I see, to lint the last 50 commits

deepProps: { Ae: { defaults: { waitMined: true, verify: true } } }
deepProps: {
Ae: {
defaults: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed here?

}
},
methods: {
_getPollInterval (type) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, these all are changes from #1369, I've rebased this PR on the top of develop and they are not visible in the diff anymore

@davidyuk davidyuk merged commit 1586b7f into develop Jan 24, 2022
@davidyuk davidyuk deleted the feature/es-node-compat branch January 24, 2022 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants