GithubHelp home page GithubHelp logo

verdaccio / file-locking Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 1017 KB

🚦library that handle file locking

Home Page: https://verdaccio.org/

License: MIT License

JavaScript 2.69% TypeScript 97.31%
fs verdaccio

file-locking's Issues

Enable Coverage on CI

We should wait to enable Coverage and CodeCov on CircleCI after #29 to not have to reimplement it after that

UnhandledPromiseRejectionWarning on run test

No errors!


(node:56355) DeprecationWarning: "--compilers" will be removed in a future version of Mocha; see https://git.io/vdcSr for more info
(node:56355) ExperimentalWarning: The fs.promises API is experimental
  testing locking
    βœ“ file should be found to be locked
    βœ“ file should fail to be found to be locked
    βœ“ file should to be found to be unLock
    βœ“ read file with no options should to be found to be read it as string
    βœ“ read file with no options should to be found to be read it as object
    βœ“ read file with options (parse) should to be not found to be read it
(node:56355) UnhandledPromiseRejectionWarning: AssertionError [ERR_ASSERTION]: false == true
    at /Users/jpicado/projects/@verdaccio/file-locking/test/lock.spec.js:72:14
    at /Users/jpicado/projects/@verdaccio/file-locking/src/index.js:155:5
(node:56355) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:56355) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    βœ“ read file with options should to be found to be read it and fails to be parsed
(node:56355) UnhandledPromiseRejectionWarning: AssertionError [ERR_ASSERTION]: false == true
    at /Users/jpicado/projects/@verdaccio/file-locking/test/lock.spec.js:85:14
    at /Users/jpicado/projects/@verdaccio/file-locking/src/index.js:155:5
(node:56355) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
    βœ“ read file with  options (parse, lock) should to be found to be read it as object
    βœ“ read file with options (parse, lock) should to be found to be read it and fails to be parsed
(node:56355) UnhandledPromiseRejectionWarning: AssertionError [ERR_ASSERTION]: false == true
    at /Users/jpicado/projects/@verdaccio/file-locking/test/lock.spec.js:114:14
    at /Users/jpicado/projects/@verdaccio/file-locking/src/index.js:155:5
(node:56355) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 5)


  9 passing (211ms)

✨  Done in 4.63s.

Migrate to Typescript

 "devDependencies": {
    "@types/node": "11.13.8",
    "@verdaccio/babel-preset": "0.1.0",
    "@verdaccio/eslint-config": "0.0.1",
    "@verdaccio/types": "5.0.2",
    "cross-env": "5.2.0",
    "eslint": "5.16.0",
    "husky": "0.14.3",
    "jest": "24.7.1",
    "lint-staged": "6.0.1",
    "standard-version": "5.0.2",
    "typescript": "3.2.4"
  },

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.