-
Notifications
You must be signed in to change notification settings - Fork 639
common: support checking custom types #1529
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
Conversation
348b4c4 to
0fdd797
Compare
packages/common/test/util.js
Outdated
|
|
||
| var subscription = new Subscription(); | ||
|
|
||
| it('should match a custom type by constructor names', function() { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
0fdd797 to
a58089e
Compare
|
LGTM! |
| } | ||
|
|
||
| var walkingModule = unknown; | ||
| do { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Changes Unknown when pulling aee15bd on stephenplusplus:spp--1467 into * on GoogleCloudPlatform:master*. |
compileProtos seeks for package.json one directory above the one it accepts as input (typically src). Running gapic-generator-typescript with --format=esm, generates the the sources in esm/src, then compileProtos can't find package.json. When package.json is not found, the root name falls back to default and all the packages have the same root. Use walk-up-path, which is also used by npm[1]. Fixes #1529. [1] https://github.com/npm/config/blob/77a48dbe22/lib/index.js#L632 Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com>
Fixes #1467
In use:
I used the constructor
@aliasstrings as the canonical name for a class.