nurulc / incr-regex-package

A node package for incremental regular expression parsing in JavaScript; useful for input validation
ISC License
13 stars 1 forks source link

incrRegEx is undefined in v1.0.4 #9

Open aashutoshrathi opened 3 years ago

aashutoshrathi commented 3 years ago

In the package version 1.0.4, as listed as the latest one here: https://www.npmjs.com/package/incr-regex-package [PS: The commits on master are only till 1.0.3]

I tried this code, which throws incrRegEx is not a function.

const ir = require("incr-regex-package");
const { incrRegEx } = ir;

Downgrading to v1.0.3 works BTW.

So I dug deeper later and saw in node_modules that in v1.0.4, there is no export for incrRegEx, which is literally the heart of this package.

Just wanted to know if this package is being actively maintained (and is it safe to use), and also did someone accidentally pushed /published their test code as v1.0.4 to npm, without ever committing here?

Thanks!