@pulumi/pulumi 3.226.0 → 3.226.1-alpha.xeef0674
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/cmd/run-policy-pack/index.js +13 -15
- package/cmd/run-policy-pack/index.js.map +1 -1
- package/package.json +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -12,13 +12,6 @@
|
|
|
12
12
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
// See the License for the specific language governing permissions and
|
|
14
14
|
// limitations under the License.
|
|
15
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
16
|
-
if (mod && mod.__esModule) return mod;
|
|
17
|
-
var result = {};
|
|
18
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
19
|
-
result["default"] = mod;
|
|
20
|
-
return result;
|
|
21
|
-
};
|
|
22
15
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
17
|
};
|
|
@@ -77,12 +70,6 @@ process.on("exit", (code) => {
|
|
|
77
70
|
process.exitCode = nodeJSProcessExitedAfterLoggingUserActionableMessage;
|
|
78
71
|
}
|
|
79
72
|
});
|
|
80
|
-
// As the second thing we do, ensure that we're connected to v8's inspector API. We need to do
|
|
81
|
-
// this as some information is only sent out as events, without any way to query for it after the
|
|
82
|
-
// fact. For example, we want to keep track of ScriptId->FileNames so that we can appropriately
|
|
83
|
-
// report errors for Functions we cannot serialize. This can only be done (up to Node11 at least)
|
|
84
|
-
// by register to hear about scripts being parsed.
|
|
85
|
-
const v8Hooks = __importStar(require("../../runtime/closure/v8Hooks"));
|
|
86
73
|
// This is the entrypoint for running a Node.js program with minimal scaffolding.
|
|
87
74
|
const minimist_1 = __importDefault(require("minimist"));
|
|
88
75
|
function usage() {
|
|
@@ -102,7 +89,18 @@ function main(args) {
|
|
|
102
89
|
// Remove <engine-address> so we simply execute the program.
|
|
103
90
|
argv._.shift();
|
|
104
91
|
// Ensure that our v8 hooks have been initialized. Then actually load and run the user program.
|
|
105
|
-
|
|
92
|
+
const initializeHooks = async () => {
|
|
93
|
+
if (process.versions.bun) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
// Ensure that we're connected to v8's inspector API. We need to do this as some information is only sent out as
|
|
97
|
+
// events, without any way to query for it after the fact. For example, we want to keep track of
|
|
98
|
+
// ScriptId->FileNames so that we can appropriately report errors for Functions we cannot serialize. This can
|
|
99
|
+
// only be done (up to Node11 at least) by registering to hear about scripts being parsed.
|
|
100
|
+
const v8Hooks = require("../../runtime/closure/v8Hooks");
|
|
101
|
+
return v8Hooks.isInitializedAsync();
|
|
102
|
+
};
|
|
103
|
+
initializeHooks().then(() => {
|
|
106
104
|
const promise = require("./run").run({
|
|
107
105
|
argv,
|
|
108
106
|
programStarted: () => {
|
|
@@ -110,7 +108,7 @@ function main(args) {
|
|
|
110
108
|
},
|
|
111
109
|
reportLoggedError: (err) => loggedErrors.add(err),
|
|
112
110
|
runInStack: false,
|
|
113
|
-
typeScript:
|
|
111
|
+
typeScript: !process.versions.bun,
|
|
114
112
|
});
|
|
115
113
|
// when the user's program completes successfully, set programRunning back to false. That
|
|
116
114
|
// way, if the Pulumi scaffolding code ends up throwing an exception during teardown, it
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../cmd/run-policy-pack/index.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
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../cmd/run-policy-pack/index.ts"],"names":[],"mappings":";AAAA,2CAA2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,OAAO,CAAC,CAAC,GAAG,CAAC;YAChD,IAAI;YACJ,cAAc,EAAE,GAAG,EAAE;gBACjB,cAAc,GAAG,IAAI,CAAC;YAC1B,CAAC;YACD,iBAAiB,EAAE,CAAC,GAAU,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC;YACxD,UAAU,EAAE,KAAK;YACjB,UAAU,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG;SACpC,CAAC,CAAC;QAEH,0FAA0F;QAC1F,wFAAwF;QACxF,4CAA4C;QAC5C,EAAE;QACF,2FAA2F;QAC3F,0FAA0F;QAC1F,uFAAuF;QACvF,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE;YACd,cAAc,GAAG,KAAK,CAAC;QAC3B,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC;AAED,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.226.
|
|
1
|
+
export declare const version = "3.226.1";
|
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.226.
|
|
16
|
+
exports.version = "3.226.1-alpha.xeef0674";
|
|
17
17
|
//# sourceMappingURL=version.js.map
|