pulumi/sdk/nodejs/runtime
Sean Gillespie 679f55c355
Validate type tokens before using them (#1904)
* Validate type tokens before using them

When registering or reading a resource, we take the type token given to
us from the language host and assume that it's valid, which resulted in
assertion failures in various places in the engine. This commit
validates the format of type tokens given to us from the language host
and issues an appropriate error if it's not valid.

Along the way, this commit also improves the way that fatal exceptions
are rendered in the Node language host.

* Pre-allocate an exception for ReadResource

* Fix integration test

* CR Feedback

This commit is a lower-impact change that fixes the bugs associated with
invalid types on component resources and only checks that a type is
valid on custom resources.

* CR Take 2: Fix up IsProviderType instead of fixing call sites

* Please gometalinter
2018-09-07 15:19:18 -07:00
..
closure Be resilient to encountering invalid data in a package.json file. (#1897) 2018-09-06 16:35:14 -07:00
config.ts Do not lazy initialize config or settings 2018-08-06 15:53:38 -07:00
debuggable.ts Don't call process.exit in exit callback (#1892) 2018-09-06 10:52:05 -07:00
index.ts Simpler way of stating which dependencies need to be available at runtime. (#1890) 2018-09-05 16:18:31 -07:00
invoke.ts Pull default options from a resource's parent. (#1748) 2018-08-10 16:18:21 -07:00
resource.ts Validate type tokens before using them (#1904) 2018-09-07 15:19:18 -07:00
rpc.ts Allow promise exports 2018-09-02 10:41:04 -07:00
settings.ts Pull default options from a resource's parent. (#1748) 2018-08-10 16:18:21 -07:00
stack.ts Add license headers 2018-05-22 15:02:47 -07:00