Giter Club home page Giter Club logo

stdout-update's Introduction

comics

stdout-update's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar github-actions[bot] avatar mergify[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

stdout-update's Issues

Node Version change on Minor release

On version 1.6.6 the Node engine was changed as documented on the release page:
Bumped node from 12.0.0 to 14.0.0

I would consider that a Major release change, as this sort of change does have breaking changes on deployment using traditional ^ updates.

Please consider updating that engine update to version ^2.. and release another version 1.6.8 with version 12.0.0 for Node engine.

Exposing the clear method from the UpdateManager

Hello @keindev,

Thank you for this well-organized library, is it possible/do you find it reasonable to expose the clear method, so that we can clear the output from outside, because with update method checks the length of the array so that we can not pass an empty array.

Can't import module

I'm not able to import the package on my project. Node.js returns this problem:

internal/process/esm_loader.js:74
    internalBinding('errors').triggerUncaughtException(
                              ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/project/node_modules/stdout-update/lib/UpdateManager' imported from /project/node_modules/stdout-update/lib/index.js
    at new NodeError (internal/errors.js:322:7)
    at finalizeResolution (internal/modules/esm/resolve.js:308:11)
    at moduleResolve (internal/modules/esm/resolve.js:731:10)
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:842:11)
    at Loader.resolve (internal/modules/esm/loader.js:89:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:242:28)
    at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:76:40)
    at link (internal/modules/esm/module_job.js:75:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

That's my package.json:

{
  "name": "project",
  "version": "1.0.0",
  "description": "",
  "main": "src/index.js",
  "type": "module",
  "scripts": {
    "start": "node src/index.js"
  },
  "dependencies": {
    "stdout-update": "^3.0.5"
  }
}

and on my JS file, I'm importing it like that:

import UpdateManager from 'stdout-update';

const manager = UpdateManager.getInstance();

A quick fix was to change the JS files inside the node_modules/stdout-update/lib folder to import the files with a .js at the end, like this:

// lib/index.js
- export { default } from './UpdateManager';
+ export { default } from './UpdateManager.js';

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.