-
Notifications
You must be signed in to change notification settings - Fork 27
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
Publish to NPM #102
Comments
Workaround for those willing to welcome cthulhu into their code base: function evaluateAndExport<T>(code: string, exportedValue: string): T {
return Function(`${code};\n\n;return ${exportedValue};`)();
} // this gets the file in angular2+, adapt as needed
const fileText = await this.http.get('https://...../2.0/zaf_sdk.js', { responseType: 'text' }).toPromise();
const exportedValue = evaluateAndExport<ExportedZafClient>(fileText, 'ZAFClient');
const client = exportedValue.init(); |
Bump - we would like to be able to type hint in our code. |
+1 |
Any update on an NPM publish? There's https://www.npmjs.com/package/zendesk_app_framework_sdk which is a publishing an old version from a fork |
2024 and still nobody cares. How sad. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Duplicate of #43
Can you please publish this package to NPM?
yarn add
your module and have a class instantiated that we can access.Currently we rely on packages maintained by third parties for this purpose which increases the chances of having lagged versions.
You could even create a package that fetches the source code within it to solve the problem of breaking changes on your package stopping client applications from functioning.
The text was updated successfully, but these errors were encountered: