Skip to content

Conversation

@stephenplusplus
Copy link
Contributor

@stephenplusplus stephenplusplus commented Aug 25, 2016

Fixes #1467

In use:

if (common.util.isCustomType(image, 'storage/file')) {
  // ...
}

I used the constructor @alias strings as the canonical name for a class.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 25, 2016

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.

This comment was marked as spam.

@callmehiphop
Copy link
Contributor

LGTM!

}

var walkingModule = unknown;
do {

This comment was marked as spam.

This comment was marked as spam.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling aee15bd on stephenplusplus:spp--1467 into * on GoogleCloudPlatform:master*.

@callmehiphop callmehiphop merged commit 77c83a1 into googleapis:master Aug 26, 2016
miguelvelezsa pushed a commit that referenced this pull request Jul 23, 2025
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement. core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants