pulumi/sdk/nodejs/runtime
Abhinav Gupta a455e0005f
sdk/node/StackReference: Add getOutputDetails
NodeJS equivalent of the StackReference.GetOutputDetails
method and accompanying type added to the Go SDK in #12034.

This will allow users of the TypeScript and JavaScript SDKs
to fetch outputs from stack references directly--without going through
an Output type.

Couple notes about testing:

- `MockMonitor.readResource` kept exploding because the getCustom method
  was missing on the provided object.
  I didn't find any examples in the Node SDK
  of using mocks to test StackReferences,
  so I'm guessing this was an unexercised code path.
  I've fixed that.
- It seems that the JavaScript SDK promotes an entire map to secret
  if an item inside it is a secret.
  So I had to isolate the two test cases into separate outputs
  to get the plain text case to be written as a "value".
  If there's a more correct way of setting up that mock,
  I'm happy to merge the outputs back into a single map
  for a more representative test case.

Refs #10839, #5035
2023-02-03 16:47:27 -08:00
..
closure Remove support for old NodeJS versions from function serializer 2022-12-11 21:20:06 +00:00
asyncIterableUtil.ts Use ESlint instead of TSlint (#7719) 2021-08-10 11:31:59 -07:00
config.ts fix: Allows for parallel pulumi programs to run in the node runtime 2022-10-13 07:15:25 -04:00
debuggable.ts fix: Allows for parallel pulumi programs to run in the node runtime 2022-10-13 07:15:25 -04:00
index.ts [sdk/nodejs] Mark internal APIs `@internal` to filter from SDK docs 2022-09-20 11:54:06 -07:00
invoke.ts Add InvokeSingle variants to dotnet and nodejs SDKs 2022-12-06 22:15:40 +01:00
mocks.ts sdk/node/StackReference: Add getOutputDetails 2023-02-03 16:47:27 -08:00
resource.ts [sdk/{go,nodejs,python}] Fix DeletedWith resource option 2023-01-15 16:30:26 -08:00
rpc.ts Detect cycles in child resources in nodejs (#9683) 2022-05-30 19:37:15 +01:00
settings.ts feat(sdk/nodejs): delegates alias computation to the engine 2022-12-15 17:23:31 -05:00
stack.ts fix: Allows for parallel pulumi programs to run in the node runtime 2022-10-13 07:15:25 -04:00
state.ts fix: Allows for parallel pulumi programs to run in the node runtime 2022-10-13 07:15:25 -04:00