@pulumi/pulumi
Advanced tools
Comparing version 0.11.0-dev-22-g5d2f21d5 to 0.11.0-dev-23-g444ebdd1
{ | ||
"name": "@pulumi/pulumi", | ||
"version": "v0.11.0-dev-22-g5d2f21d5", | ||
"version": "v0.11.0-dev-23-g444ebdd1", | ||
"description": "Pulumi's Node.js SDK", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/pulumi/pulumi/sdk/nodejs", |
@@ -15,2 +15,3 @@ "use strict"; | ||
const ts = require("typescript"); | ||
const errors_1 = require("../errors"); | ||
const log = require("../log"); | ||
@@ -26,3 +27,9 @@ const resource = require("../resource"); | ||
// get to our builtin module. | ||
const nativeruntime = process.binding("pulumi_closure"); | ||
let nativeruntime; | ||
try { | ||
nativeruntime = process.binding("pulumi_closure"); | ||
} | ||
catch (err) { | ||
throw new errors_1.RunError(`Failed to load custom Pulumi SDK Node.js extension; are you running using the Pulumi CLI? (${err.message})`); | ||
} | ||
/** | ||
@@ -29,0 +36,0 @@ * serializeClosure serializes a function and its closure environment into a form that is amenable to persistence |
"use strict"; | ||
// Copyright 2016-2017, Pulumi Corporation. All rights reserved. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const errors_1 = require("../errors"); | ||
const debuggable_1 = require("./debuggable"); | ||
@@ -17,6 +18,2 @@ /** | ||
/** | ||
* configured is set to true once configuration has been set. | ||
*/ | ||
let configured; | ||
/** | ||
* hasMonitor returns true if we are currently connected to a resource monitoring service. | ||
@@ -32,5 +29,5 @@ */ | ||
function getMonitor() { | ||
if (!configured) { | ||
configured = true; | ||
console.warn("warning: Pulumi Fabric monitor is missing; no resources will be created"); | ||
if (!exports.options.monitor) { | ||
throw new errors_1.RunError("Pulumi program not connected to the engine -- are you running with the `pulumi` CLI?\n" + | ||
"This can also happen if you've loaded the Pulumi SDK module multiple times into the same proces"); | ||
} | ||
@@ -55,2 +52,6 @@ return exports.options.monitor; | ||
/** | ||
* configured is set to true once configuration has been set. | ||
*/ | ||
let configured; | ||
/** | ||
* configure initializes the current resource monitor and engine RPC connections, and whether we are performing a "dry | ||
@@ -57,0 +58,0 @@ * run" (preview), versus a real deployment, and so on. It may only be called once. |
"use strict"; | ||
// Copyright 2016-2017, Pulumi Corporation. All rights reserved. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = "v0.11.0-dev-22-g5d2f21d5"; | ||
exports.version = "v0.11.0-dev-23-g444ebdd1"; | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
517180
10050