Code Monkey home page Code Monkey logo

srt-validator's People

Contributors

amoshydra avatar dependabot[bot] avatar fsevenm avatar ryansonshine avatar schmooie avatar seanjohnson08 avatar taoning2014 avatar ygongdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

srt-validator's Issues

Set up the PR workflow

Make the PR workflow to be mandatory, banned push code directly to the master branch.

Sometimes only first error found is returned

Is your feature request related to a problem? Please describe.
In some cases only the first error found is returned

Describe the solution you'd like
I would like the result to return an array of all errors found

Describe alternatives you've considered
None yet

Additional context
sample A
The response of the validator only returns the first error found on lineNumber 6.
Other errors are not returned (e.g. line 10, line 14).

When I fix the timestamps on these lines (6, 10, 14), see sample B and validate again. I do get an array of 4 errors found :). (line 5, 9, 10, 13).

To me it seems sample A should also return all errors found, instead of 1.

-- sample A
1
00:00:00,890 --> 00:00:02,500
aa

200
00:00:02,890 --> 00:00:04,500123
bb

2
00:00:00,890 --> 00:00:02,500test
cc

2
00:00:02,890broken --> 00:00:04,500
dd

-- sample B
1
00:00:00,890 --> 00:00:02,500
aa

200
00:00:02,890 --> 00:00:04,500
bb

2
00:00:00,890 --> 00:00:02,500
cc

2
00:00:02,890 --> 00:00:04,500
dd

Fix publish to NPM failure

This repo defines a Github action that publishes each commit as a new version to npm. Due to npm needing a new version number on publishing from package.json, currently, it requires the developer to bump the package version manually in order to make the publishing successful(one example failure without npm version bump).

Add a post-merge commit to bump version automatically.

How to actually use this package?

Describe the bug
When calling using import srtValidator from 'srt-validator', the package cannot be resolved. It can be when I use import srtValidator from 'srt-validator/src' but got this:

/home/fsevenm/works/tictag-io/backend/api-application/node_modules/srt-validator/src/index.js:1
import SRTParser from './parser';
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at wrapSafe (internal/modules/cjs/loader.js:1070:16)
    at Module._compile (internal/modules/cjs/loader.js:1120:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
    at require (internal/modules/cjs/helpers.js:77:18)
...

To Reproduce
Steps to reproduce the behavior:

  1. Call using import statement

Expected behavior
Should be resolved and work

Desktop (please complete the following information):

  • OS: Ubuntu 21.10
  • Node 12.16.2 using TypeScript

Integrate with Codecov

From their statement:

With everything from doorbells to rockets running on code, it's more important than ever to ensure quality code is being delivered with every release.

Code coverage is one of the most important metrics companies rely on to ship healthier code, faster, and with less risk.

Codecov gives companies actionable coverage insights when and where they need them to ensure they are shipping quality code.

After integration, add a code coverage badge on the readme file.

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.