-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from smarty/max/esmodules
Max/esmodules
- Loading branch information
Showing
10 changed files
with
3,842 additions
and
1,486 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ __MACOSX | |
/.idea/ | ||
/node_modules/ | ||
/dist/ | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/** | ||
* this files is the entry point for rollup to bundle the library | ||
* it exports all the classes and functions as named exports | ||
*/ | ||
import Batch from "./src/Batch.js"; | ||
import ClientBuilder from "./src/ClientBuilder.js"; | ||
import buildClient from "./src/util/buildClients.js"; | ||
import SharedCredentials from "./src/SharedCredentials.js"; | ||
import StaticCredentials from "./src/StaticCredentials.js"; | ||
import Errors from "./src/Errors.js"; | ||
|
||
import LookupUSStreet from "./src/us_street/Lookup.js"; | ||
import CandidateUSStreet from "./src/us_street/Candidate.js"; | ||
|
||
import LookupUSZipcode from "./src/us_zipcode/Lookup.js"; | ||
import ResultUSZipcode from "./src/us_zipcode/Result.js"; | ||
|
||
import LookupUSAutocompletePro from "./src/us_autocomplete_pro/Lookup.js"; | ||
import SuggestionUSAutocompletePro from "./src/us_autocomplete_pro/Suggestion.js"; | ||
|
||
import LookupUSExtract from "./src/us_extract/Lookup.js"; | ||
import ResultUSExtract from "./src/us_extract/Result.js"; | ||
|
||
import LookupInternationalStreet from "./src/international_street/Lookup.js"; | ||
import CandidateInternationalStreet from "./src/international_street/Candidate.js"; | ||
|
||
import LookupUSReverseGeo from "./src/us_reverse_geo/Lookup.js"; | ||
|
||
import LookupInternationalAddressAutocomplete from "./src/international_address_autocomplete/Lookup.js"; | ||
import SuggestionInternationalAddressAutocomplete from "./src/international_address_autocomplete/Suggestion.js"; | ||
|
||
import LookupUSEnrichment from "./src/us_enrichment/Lookup.js"; | ||
import ResponseUSEnrichment from "./src/us_enrichment/Response.js"; | ||
|
||
export const core = { | ||
Batch, | ||
ClientBuilder, | ||
buildClient, | ||
SharedCredentials, | ||
StaticCredentials, | ||
Errors, | ||
}; | ||
|
||
export const usStreet = { | ||
Lookup: LookupUSStreet, | ||
Candidate: CandidateUSStreet, | ||
}; | ||
|
||
export const usZipcode = { | ||
Lookup: LookupUSZipcode, | ||
Result: ResultUSZipcode, | ||
}; | ||
|
||
export const usAutocompletePro = { | ||
Lookup: LookupUSAutocompletePro, | ||
Suggestion: SuggestionUSAutocompletePro, | ||
}; | ||
|
||
export const usExtract = { | ||
Lookup: LookupUSExtract, | ||
Result: ResultUSExtract, | ||
}; | ||
|
||
export const internationalStreet = { | ||
Lookup: LookupInternationalStreet, | ||
Candidate: CandidateInternationalStreet, | ||
}; | ||
|
||
export const usReverseGeo = { | ||
Lookup: LookupUSReverseGeo, | ||
}; | ||
|
||
export const internationalAddressAutocomplete = { | ||
Lookup: LookupInternationalAddressAutocomplete, | ||
Suggestion: SuggestionInternationalAddressAutocomplete, | ||
}; | ||
|
||
export const usEnrichment = { | ||
Lookup: LookupUSEnrichment, | ||
Response: ResponseUSEnrichment, | ||
}; | ||
|
||
export default { | ||
core, | ||
usStreet, | ||
usZipcode, | ||
usAutocompletePro, | ||
usExtract, | ||
internationalStreet, | ||
usReverseGeo, | ||
internationalAddressAutocomplete, | ||
usEnrichment, | ||
}; |
Oops, something went wrong.