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

not all methods listed in the API are exported from the index file, mainly "file system" ones #74

Open
march213 opened this issue Jun 8, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@march213
Copy link

march213 commented Jun 8, 2022

Problem

👋🏻 Hello!

Noticed that some imports listed in the File System section are not exported.

Package version: "flow-cadut": "0.1.16-alpha.4",

Steps to Reproduce

const { sansExtension } = require('flow-cadut');
const fileName = sansExtension('log-message-and-return.cdc');
console.log({ fileName });

or

const { writeFile } = require('flow-cadut');

const script = `
  pub fun main(){
    log("Hello, Cadence")
  }
`;

writeFile('./cadence/scripts/log.cdc', script);

Error:

const fileName = sansExtension('log-message-and-return.cdc');
                 ^
TypeError: sansExtension is not a function

or

writeFile('./cadence/scripts/log.cdc', script);
^

TypeError: writeFile is not a function

Acceptance Criteria

All methods that are listed in the API docs are exported.

Maybe I'm using the wrong version, not sure. They look very promising and I'm eager to use them instead of custom scripts.

@march213 march213 added the bug Something isn't working label Jun 8, 2022
@march213 march213 changed the title not all methods listed in the API are exported from the index file, mainly file system ones not all methods listed in the API are exported from the index file, mainly "file system" ones Jun 8, 2022
@jribbink jribbink assigned jribbink and unassigned MaxStalker Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants