@pulumi/pulumi 3.65.1 → 3.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/automation/errors.js +9 -5
- package/automation/errors.js.map +1 -1
- package/automation/events.js.map +1 -1
- package/automation/localWorkspace.js +21 -5
- package/automation/localWorkspace.js.map +1 -1
- package/automation/remoteStack.js.map +1 -1
- package/automation/remoteWorkspace.js.map +1 -1
- package/automation/server.js +1 -1
- package/automation/server.js.map +1 -1
- package/automation/stack.js +14 -7
- package/automation/stack.js.map +1 -1
- package/cmd/dynamic-provider/index.js +1 -1
- package/cmd/dynamic-provider/index.js.map +1 -1
- package/cmd/run/index.js +5 -3
- package/cmd/run/index.js.map +1 -1
- package/cmd/run/run.js +3 -7
- package/cmd/run/run.js.map +1 -1
- package/cmd/run/tracing.js.map +1 -1
- package/cmd/run-policy-pack/index.js +1 -1
- package/cmd/run-policy-pack/index.js.map +1 -1
- package/cmd/run-policy-pack/run.js +3 -6
- package/cmd/run-policy-pack/run.js.map +1 -1
- package/config.js +2 -3
- package/config.js.map +1 -1
- package/dynamic/index.js +2 -2
- package/dynamic/index.js.map +1 -1
- package/iterable/index.js +4 -4
- package/iterable/index.js.map +1 -1
- package/log/index.js +1 -3
- package/log/index.js.map +1 -1
- package/output.d.ts +4 -4
- package/output.js +35 -29
- package/output.js.map +1 -1
- package/package.json +2 -1
- package/provider/internals.js.map +1 -1
- package/provider/server.js +7 -8
- package/provider/server.js.map +1 -1
- package/resource.js +8 -8
- package/resource.js.map +1 -1
- package/runtime/asyncIterableUtil.js +1 -1
- package/runtime/asyncIterableUtil.js.map +1 -1
- package/runtime/closure/codePaths.js +1 -2
- package/runtime/closure/codePaths.js.map +1 -1
- package/runtime/closure/createClosure.js +56 -38
- package/runtime/closure/createClosure.js.map +1 -1
- package/runtime/closure/package.js +8 -5
- package/runtime/closure/package.js.map +1 -1
- package/runtime/closure/parseFunction.js +33 -17
- package/runtime/closure/parseFunction.js.map +1 -1
- package/runtime/closure/rewriteSuper.js +3 -6
- package/runtime/closure/rewriteSuper.js.map +1 -1
- package/runtime/closure/serializeClosure.js +34 -26
- package/runtime/closure/serializeClosure.js.map +1 -1
- package/runtime/closure/utils.js +1 -2
- package/runtime/closure/utils.js.map +1 -1
- package/runtime/closure/v8.js +9 -10
- package/runtime/closure/v8.js.map +1 -1
- package/runtime/closure/v8Hooks.js +2 -2
- package/runtime/closure/v8Hooks.js.map +1 -1
- package/runtime/config.js.map +1 -1
- package/runtime/debuggable.js +10 -9
- package/runtime/debuggable.js.map +1 -1
- package/runtime/index.js.map +1 -1
- package/runtime/invoke.js +4 -9
- package/runtime/invoke.js.map +1 -1
- package/runtime/mocks.js.map +1 -1
- package/runtime/resource.js +17 -12
- package/runtime/resource.js.map +1 -1
- package/runtime/rpc.js +6 -6
- package/runtime/rpc.js.map +1 -1
- package/runtime/settings.js +1 -1
- package/runtime/settings.js.map +1 -1
- package/runtime/stack.js +3 -3
- package/runtime/stack.js.map +1 -1
- package/runtime/state.js +1 -3
- package/runtime/state.js.map +1 -1
- package/stackReference.js.map +1 -1
- package/tests/automation/localWorkspace.spec.js +63 -57
- package/tests/automation/localWorkspace.spec.js.map +1 -1
- package/tests/automation/remoteWorkspace.spec.js +9 -6
- package/tests/automation/remoteWorkspace.spec.js.map +1 -1
- package/tests/config.spec.js +76 -28
- package/tests/config.spec.js.map +1 -1
- package/tests/iterable.spec.js +2 -2
- package/tests/iterable.spec.js.map +1 -1
- package/tests/options.spec.js +9 -3
- package/tests/options.spec.js.map +1 -1
- package/tests/output.spec.js +61 -67
- package/tests/output.spec.js.map +1 -1
- package/tests/provider.spec.js +7 -1
- package/tests/provider.spec.js.map +1 -1
- package/tests/resource.spec.js.map +1 -1
- package/tests/runtime/asyncIterableUtil.spec.js.map +1 -1
- package/tests/runtime/closureLoader.spec.js +1 -1
- package/tests/runtime/closureLoader.spec.js.map +1 -1
- package/tests/runtime/deploymentOnlyModule/runtimeConfig.js.map +1 -1
- package/tests/runtime/langhost/cases/000.empty/index.js +0 -1
- package/tests/runtime/langhost/cases/001.one_resource/index.js +0 -1
- package/tests/runtime/langhost/cases/002.ten_resources/index.js +0 -1
- package/tests/runtime/langhost/cases/003.one_complex_resource/index.js +20 -20
- package/tests/runtime/langhost/cases/004.ten_complex_resources/index.js +5 -6
- package/tests/runtime/langhost/cases/004.ten_complex_resources/resource.js +11 -12
- package/tests/runtime/langhost/cases/005.resource_thens/index.js +12 -13
- package/tests/runtime/langhost/cases/006.asset/index.js +1 -2
- package/tests/runtime/langhost/cases/007.promises_io/index.js +2 -3
- package/tests/runtime/langhost/cases/008.ten_depends_on_resources/index.js +19 -11
- package/tests/runtime/langhost/cases/009.invoke/index.js +1 -1
- package/tests/runtime/langhost/cases/012.assets_archive/index.js +10 -8
- package/tests/runtime/langhost/cases/013.unhandled_promise_rejection/index.js +1 -1
- package/tests/runtime/langhost/cases/014.read_resource/index.js +7 -7
- package/tests/runtime/langhost/cases/015.runtime_sxs/index.js +35 -19
- package/tests/runtime/langhost/cases/017.parent_defaults/index.js +49 -41
- package/tests/runtime/langhost/cases/020.property_dependencies/index.js +27 -18
- package/tests/runtime/langhost/cases/021.parent_child_dependencies/index.js +3 -3
- package/tests/runtime/langhost/cases/022.parent_child_dependencies_2/index.js +3 -3
- package/tests/runtime/langhost/cases/023.parent_child_dependencies_3/index.js +6 -6
- package/tests/runtime/langhost/cases/024.parent_child_dependencies_4/index.js +8 -8
- package/tests/runtime/langhost/cases/025.parent_child_dependencies_5/index.js +9 -9
- package/tests/runtime/langhost/cases/026.parent_child_dependencies_6/index.js +11 -11
- package/tests/runtime/langhost/cases/027.parent_child_dependencies_7/index.js +14 -14
- package/tests/runtime/langhost/cases/028.parent_child_dependencies_8/index.js +10 -10
- package/tests/runtime/langhost/cases/029.parent_child_dependencies_9/index.js +8 -8
- package/tests/runtime/langhost/cases/030.import_resource/index.js +0 -1
- package/tests/runtime/langhost/cases/041.component_opt_single_provider/index.js +49 -41
- package/tests/runtime/langhost/cases/042.component_opt_providers_array/index.js +49 -41
- package/tests/runtime/langhost/cases/060.provider_invokes/index.js +4 -4
- package/tests/runtime/langhost/cases/061.provider_in_parent_invokes/index.js +8 -8
- package/tests/runtime/langhost/cases/063.providerref_in_parent_invokes/index.js +2 -2
- package/tests/runtime/langhost/cases/064.async_components/index.js +9 -9
- package/tests/runtime/langhost/cases/065.large_resource/index.js +2 -2
- package/tests/runtime/langhost/cases/067.native_es_module/index.js +0 -1
- package/tests/runtime/langhost/cases/068.remote_component_providers/index.js +6 -6
- package/tests/runtime/langhost/cases/069.ambiguous_entrypoints/index.js +0 -1
- package/tests/runtime/langhost/cases/070.unusual_alias_names/index.js +5 -6
- package/tests/runtime/langhost/cases/071.large_alias_counts/index.js +4 -5
- package/tests/runtime/langhost/cases/072.large_alias_lineage_chains/index.js +13 -14
- package/tests/runtime/langhost/cases/073.component_dependencies/index.js +10 -10
- package/tests/runtime/langhost/run.spec.js +140 -116
- package/tests/runtime/langhost/run.spec.js.map +1 -1
- package/tests/runtime/package.spec.js +23 -23
- package/tests/runtime/package.spec.js.map +1 -1
- package/tests/runtime/props.spec.js +53 -51
- package/tests/runtime/props.spec.js.map +1 -1
- package/tests/runtime/settings.spec.js.map +1 -1
- package/tests/runtime/tsClosureCases.js +3 -1
- package/tests/runtime/tsClosureCases.js.map +1 -1
- package/tests/stackReference.spec.js.map +1 -1
- package/tests/unwrap.spec.js +27 -7
- package/tests/unwrap.spec.js.map +1 -1
- package/tests/util.js.map +1 -1
- package/tests_with_mocks/mocks.spec.js +11 -11
- package/tests_with_mocks/mocks.spec.js.map +1 -1
- package/version.js +1 -1
|
@@ -70,7 +70,7 @@ pulumi.runtime.setMocks({
|
|
|
70
70
|
class MyComponent extends pulumi.ComponentResource {
|
|
71
71
|
constructor(name, inprop, opts) {
|
|
72
72
|
super("pkg:index:MyComponent", name, {}, opts);
|
|
73
|
-
this.outprop = pulumi.output(inprop).apply(x => `output: ${x}`);
|
|
73
|
+
this.outprop = pulumi.output(inprop).apply((x) => `output: ${x}`);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
class MyRemoteComponent extends pulumi.ComponentResource {
|
|
@@ -112,37 +112,37 @@ const invokeResult = invoke();
|
|
|
112
112
|
const myremotecomponent = new MyRemoteComponent("myremotecomponent", pulumi.interpolate `hello: ${myinstance.id}`);
|
|
113
113
|
describe("mocks", function () {
|
|
114
114
|
describe("component", function () {
|
|
115
|
-
it("has expected output value", done => {
|
|
116
|
-
mycomponent.outprop.apply(outprop => {
|
|
115
|
+
it("has expected output value", (done) => {
|
|
116
|
+
mycomponent.outprop.apply((outprop) => {
|
|
117
117
|
assert.strictEqual(outprop, "output: hello");
|
|
118
118
|
done();
|
|
119
119
|
});
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
describe("remote component", function () {
|
|
123
|
-
it("has expected output value", done => {
|
|
124
|
-
myremotecomponent.outprop.apply(outprop => {
|
|
123
|
+
it("has expected output value", (done) => {
|
|
124
|
+
myremotecomponent.outprop.apply((outprop) => {
|
|
125
125
|
assert.strictEqual(outprop.startsWith("output: hello: "), true);
|
|
126
126
|
done();
|
|
127
127
|
});
|
|
128
128
|
});
|
|
129
129
|
});
|
|
130
130
|
describe("custom", function () {
|
|
131
|
-
it("instance has expected output value", done => {
|
|
132
|
-
myinstance.publicIP.apply(ip => {
|
|
131
|
+
it("instance has expected output value", (done) => {
|
|
132
|
+
myinstance.publicIP.apply((ip) => {
|
|
133
133
|
assert.strictEqual(ip, "203.0.113.12");
|
|
134
134
|
done();
|
|
135
135
|
});
|
|
136
136
|
});
|
|
137
|
-
it("mycustom has expected output value", done => {
|
|
138
|
-
mycustom.instance.apply(instance => {
|
|
137
|
+
it("mycustom has expected output value", (done) => {
|
|
138
|
+
mycustom.instance.apply((instance) => {
|
|
139
139
|
done();
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
142
|
});
|
|
143
143
|
describe("invoke", function () {
|
|
144
|
-
it("has expected result", done => {
|
|
145
|
-
invokeResult.then(value => {
|
|
144
|
+
it("has expected result", (done) => {
|
|
145
|
+
invokeResult.then((value) => {
|
|
146
146
|
assert.strictEqual(value, 59);
|
|
147
147
|
done();
|
|
148
148
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mocks.spec.js","sourceRoot":"","sources":["../../tests_with_mocks/mocks.spec.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;;;;;;;;;;;;;;;;AAEjC,+CAAiC;AACjC,iDAAmC;AAInC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC;IACpB,IAAI,EAAE,CAAC,IAAkB,EAAE,EAAE;QACzB,QAAQ,IAAI,CAAC,KAAK,EAAE;
|
|
1
|
+
{"version":3,"file":"mocks.spec.js","sourceRoot":"","sources":["../../tests_with_mocks/mocks.spec.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;;;;;;;;;;;;;;;;AAEjC,+CAAiC;AACjC,iDAAmC;AAInC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC;IACpB,IAAI,EAAE,CAAC,IAAkB,EAAE,EAAE;QACzB,QAAQ,IAAI,CAAC,KAAK,EAAE;YAChB,KAAK,uBAAuB;gBACxB,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;YAC7B;gBACI,OAAO,EAAE,CAAC;SACjB;IACL,CAAC;IACD,WAAW,EAAE,CAAC,IAAsB,EAA8B,EAAE;QAChE,QAAQ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CAAC,oCAAoC,EAAE,CAAC,IAAI,EAAE,EAAE;YAC9C,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,EAAE;gBAC7B,MAAM,CAAC,WAAW,CAAC,EAAE,EAAE,cAAc,CAAC,CAAC;gBACvC,IAAI,EAAE,CAAC;YACX,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oCAAoC,EAAE,CAAC,IAAI,EAAE,EAAE;YAC9C,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACjC,IAAI,EAAE,CAAC;YACX,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,QAAQ,EAAE;QACf,EAAE,CAAC,qBAAqB,EAAE,CAAC,IAAI,EAAE,EAAE;YAC/B,YAAY,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;gBACxB,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;gBAC9B,IAAI,EAAE,CAAC;YACX,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
package/version.js
CHANGED
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
// See the License for the specific language governing permissions and
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.version = "3.
|
|
16
|
+
exports.version = "3.66.0";
|
|
17
17
|
//# sourceMappingURL=version.js.map
|