pulumi/sdk/nodejs/tests
Paul Stack ae9a6db36e
Add the ability to pulumi.unsecret an existing output (#6086)
Related: #5653

This will take an existing output and then unwrap the secret, and
return a new output

```
import * as pulumi from "@pulumi/pulumi";

const x = pulumi.secret("test")
export const xVal = x;

const y = pulumi.unsecret(x);
export const yVal = y;
```

```
▶ pulumi stack output
Current stack outputs (3):
    OUTPUT         VALUE
    xVal           [secret]
    yVal           test
```

Also adds the ability to check if an output is as secret:

```
import * as pulumi from "@pulumi/pulumi";

const x = pulumi.secret("test")
const isSecret = x.isSecret;

export const isSecretDeets = isSecret;
```
2021-01-14 20:36:52 +00:00
..
automation [Automation API] Python Implementation (#5979) 2021-01-12 16:55:59 -08:00
runtime Allow serializeFunction to capture secrets (#6013) 2020-12-31 09:37:25 +11:00
sxs_ts_3.6 Fix typing for 'Lifted<T>' to work better across versions of TS (#3658) 2019-12-13 11:18:19 -08:00
sxs_ts_latest Fix typing for 'Lifted<T>' to work better across versions of TS (#3658) 2019-12-13 11:18:19 -08:00
config.spec.ts Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
init.spec.ts Add license headers 2018-05-22 15:02:47 -07:00
iterable.spec.ts Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
options.spec.ts Transformations (#3174) 2019-09-29 11:27:37 -07:00
output.spec.ts Add the ability to pulumi.unsecret an existing output (#6086) 2021-01-14 20:36:52 +00:00
resource.spec.ts Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
testmode.spec.ts Add NodeJS resource ref unit tests. (#5969) 2020-12-17 10:49:22 -08:00
unwrap.spec.ts Simplify type assertion in unwrap.spec.ts (#5311) 2020-09-09 14:22:54 -07:00
util.ts Mark internal APIs @internal to filter from API docs (#3809) 2020-01-26 09:06:35 -08:00