Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: export Drift's public API (#83)
## Description This PR uses [the approach preferred by the Closure docs](https://developers.google.com/closure/compiler/docs/api-tutorial3#export) to export the public API of the Drift class. This has to happen because Closure rewrites the names of the class methods, which prevents third-parties from calling methods by their proper names. Fixes #81 ### Bug Fix - [x] All existing unit tests are still passing (if applicable) - [N/A] Add new passing unit tests to cover the code introduced by your PR - [N/A] Update the readme - [N/A] Update or add any necessary API documentation - [x] Add some [steps](#steps-to-test) so we can test your bug fix - [x] The PR title is in the [conventional commit](#conventional-commit-spec) format: e.g. `fix(<area>): fixed bug #issue-number` - [x] Add your info to the [contributors](#packagejson-contributors) array in package.json! ## Steps to Test Steps: 1. Clone this PR, `npm install` 2. Run `npm run build:watch` 2. Play around with drift in `index.html`. `console.log(new Drift(...))` should show that everything is exported on the prototype.
- Loading branch information