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

4.2.7 breaks programmatic interface #95

Closed
chohner opened this issue Sep 19, 2023 · 0 comments · Fixed by #96
Closed

4.2.7 breaks programmatic interface #95

chohner opened this issue Sep 19, 2023 · 0 comments · Fixed by #96

Comments

@chohner
Copy link
Contributor

chohner commented Sep 19, 2023

After updating to v4.2.7, we are seeing the following error when using the API (our implementation):

/node_modules/slide/lib/async-map.js:47
    if (--a === 0) cb_.apply(null, [errState].concat(data))
                       ^
TypeError: this.writeOutput is not a function
    at /node_modules/license-checker-rseidelsohn/lib/index.js:732:18
    at /node_modules/read-installed-packages/read-installed.js:139:5
    at /node_modules/read-installed-packages/read-installed.js:267:14
    at cb (/node_modules/slide/lib/async-map.js:47:24)
    at /node_modules/read-installed-packages/read-installed.js:267:14
    at cb (/node_modules/slide/lib/async-map.js:47:24)
    at /node_modules/read-installed-packages/read-installed.js:245:16
    at /node_modules/slide/lib/async-map.js:52:35
    at Array.forEach (<anonymous>)
    at /node_modules/slide/lib/async-map.js:52:11

Seems to be connected to #81, where for the first time a methods of this is called, which in our environment references a global this (not the exports object).

Suggestion: Changing it to exports.writeOutput seems to work for us. (I made a corresponding PR: #96)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant