Socket
Socket
Sign inDemoInstall

@pulumi/pulumi

Package Overview
Dependencies
Maintainers
2
Versions
4388
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pulumi/pulumi - npm Package Compare versions

Comparing version 3.122.1-alpha.xddbbbd7 to 3.122.1-alpha.xf079f6d

runtime/dependsOn.d.ts

5

invoke.d.ts

@@ -0,1 +1,2 @@

import { Input } from "./output";
import { ProviderResource, Resource } from "./resource";

@@ -32,2 +33,6 @@ export interface InvokeOptions {

async?: boolean;
/**
* An optional set of additional explicit dependencies on other resources.
*/
dependsOn?: Input<Input<Resource>[]> | Input<Resource>;
}

2

invoke.js
"use strict";
// Copyright 2016-2018, Pulumi Corporation.
// Copyright 2016-2024, Pulumi Corporation.
//

@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

{
"name": "@pulumi/pulumi",
"version": "3.122.1-alpha.xddbbbd7",
"version": "3.122.1-alpha.xf079f6d",
"description": "Pulumi's Node.js SDK",

@@ -15,10 +15,10 @@ "license": "Apache-2.0",

"@npmcli/arborist": "^7.3.1",
"@opentelemetry/api": "^1.2.0",
"@opentelemetry/exporter-zipkin": "^1.6.0",
"@opentelemetry/instrumentation": "^0.32.0",
"@opentelemetry/instrumentation-grpc": "^0.32.0",
"@opentelemetry/resources": "^1.6.0",
"@opentelemetry/sdk-trace-base": "^1.6.0",
"@opentelemetry/sdk-trace-node": "^1.6.0",
"@opentelemetry/semantic-conventions": "^1.6.0",
"@opentelemetry/api": "^1.9",
"@opentelemetry/exporter-zipkin": "^1.25",
"@opentelemetry/instrumentation": "^0.52",
"@opentelemetry/instrumentation-grpc": "^0.52",
"@opentelemetry/resources": "^1.25",
"@opentelemetry/sdk-trace-base": "^1.25",
"@opentelemetry/sdk-trace-node": "^1.25",
"@opentelemetry/semantic-conventions": "^1.25",
"@pulumi/query": "^0.3.0",

@@ -25,0 +25,0 @@ "@types/google-protobuf": "^3.15.5",

@@ -723,12 +723,12 @@ // package: pulumirpc

setVersion(value: string): RegisterPackageRequest;
getPluginDownloadUrl(): string;
setPluginDownloadUrl(value: string): RegisterPackageRequest;
getDownloadUrl(): string;
setDownloadUrl(value: string): RegisterPackageRequest;
getPluginChecksumsMap(): jspb.Map<string, Uint8Array | string>;
clearPluginChecksumsMap(): void;
getChecksumsMap(): jspb.Map<string, Uint8Array | string>;
clearChecksumsMap(): void;
hasParameter(): boolean;
clearParameter(): void;
getParameter(): PackageParameter | undefined;
setParameter(value?: PackageParameter): RegisterPackageRequest;
hasParameterization(): boolean;
clearParameterization(): void;
getParameterization(): Parameterization | undefined;
setParameterization(value?: Parameterization): RegisterPackageRequest;

@@ -749,6 +749,6 @@ serializeBinary(): Uint8Array;

version: string,
pluginDownloadUrl: string,
downloadUrl: string,
pluginChecksumsMap: Array<[string, Uint8Array | string]>,
parameter?: PackageParameter.AsObject,
checksumsMap: Array<[string, Uint8Array | string]>,
parameterization?: Parameterization.AsObject,
}

@@ -777,7 +777,7 @@ }

export class PackageParameter extends jspb.Message {
export class Parameterization extends jspb.Message {
getName(): string;
setName(value: string): PackageParameter;
setName(value: string): Parameterization;
getVersion(): string;
setVersion(value: string): PackageParameter;
setVersion(value: string): Parameterization;

@@ -787,15 +787,15 @@ hasValue(): boolean;

getValue(): google_protobuf_struct_pb.Value | undefined;
setValue(value?: google_protobuf_struct_pb.Value): PackageParameter;
setValue(value?: google_protobuf_struct_pb.Value): Parameterization;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PackageParameter.AsObject;
static toObject(includeInstance: boolean, msg: PackageParameter): PackageParameter.AsObject;
toObject(includeInstance?: boolean): Parameterization.AsObject;
static toObject(includeInstance: boolean, msg: Parameterization): Parameterization.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: PackageParameter, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): PackageParameter;
static deserializeBinaryFromReader(message: PackageParameter, reader: jspb.BinaryReader): PackageParameter;
static serializeBinaryToWriter(message: Parameterization, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Parameterization;
static deserializeBinaryFromReader(message: Parameterization, reader: jspb.BinaryReader): Parameterization;
}
export namespace PackageParameter {
export namespace Parameterization {
export type AsObject = {

@@ -802,0 +802,0 @@ name: string,

@@ -407,2 +407,4 @@ "use strict";

case ts.SyntaxKind.MethodDeclaration:
case ts.SyntaxKind.GetAccessor:
case ts.SyntaxKind.SetAccessor:
return visitMethodDeclaration(node);

@@ -409,0 +411,0 @@ case ts.SyntaxKind.MetaProperty:

"use strict";
// Copyright 2016-2021, Pulumi Corporation.
// Copyright 2016-2024, Pulumi Corporation.
//

@@ -33,2 +33,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

const grpc = __importStar(require("@grpc/grpc-js"));
const dependsOn_1 = require("./dependsOn");
const log = __importStar(require("../log"));

@@ -102,2 +103,4 @@ const output_1 = require("../output");

try {
// Wait for any explicit dependencies to complete before proceeding.
yield dependsOn_1.gatherExplicitDependencies(opts.dependsOn);
const serialized = yield rpc_1.serializeProperties(`streamInvoke:${tok}`, props);

@@ -141,2 +144,4 @@ log.debug(`StreamInvoke RPC prepared: tok=${tok}` + settings_1.excessiveDebugOutput ? `, obj=${JSON.stringify(serialized)}` : ``);

try {
// Wait for any explicit dependencies to complete before proceeding.
yield dependsOn_1.gatherExplicitDependencies(opts.dependsOn);
const serialized = yield rpc_1.serializeProperties(`invoke:${tok}`, props);

@@ -143,0 +148,0 @@ log.debug(`Invoke RPC prepared: tok=${tok}` + settings_1.excessiveDebugOutput ? `, obj=${JSON.stringify(serialized)}` : ``);

"use strict";
// Copyright 2016-2021, Pulumi Corporation.
// Copyright 2016-2024, Pulumi Corporation.
//

@@ -39,2 +39,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

const debuggable_1 = require("./debuggable");
const dependsOn_1 = require("./dependsOn");
const invoke_1 = require("./invoke");

@@ -537,3 +538,3 @@ const state_1 = require("./state");

// Before we can proceed, all our dependencies must be finished.
const explicitDirectDependencies = new Set(yield gatherExplicitDependencies(opts.dependsOn));
const explicitDirectDependencies = new Set(yield dependsOn_1.gatherExplicitDependencies(opts.dependsOn));
// Serialize out all our props to their final values. In doing so, we'll also collect all

@@ -731,36 +732,2 @@ // the Resources pointed to by any Dependency objects we encounter, adding them to 'propertyDependencies'.

/**
* Gathers explicit dependent Resources from a list of Resources (possibly Promises and/or Outputs).
*/
function gatherExplicitDependencies(dependsOn) {
return __awaiter(this, void 0, void 0, function* () {
if (dependsOn) {
if (Array.isArray(dependsOn)) {
const dos = [];
for (const d of dependsOn) {
dos.push(...(yield gatherExplicitDependencies(d)));
}
return dos;
}
else if (dependsOn instanceof Promise) {
return gatherExplicitDependencies(yield dependsOn);
}
else if (output_1.Output.isInstance(dependsOn)) {
// Recursively gather dependencies, await the promise, and append the output's dependencies.
const dos = dependsOn.apply((v) => gatherExplicitDependencies(v));
const urns = yield dos.promise();
const dosResources = yield output_1.getAllResources(dos);
const implicits = yield gatherExplicitDependencies([...dosResources]);
return (urns !== null && urns !== void 0 ? urns : []).concat(implicits);
}
else {
if (!resource_1.Resource.isInstance(dependsOn)) {
throw new Error("'dependsOn' was passed a value that was not a Resource.");
}
return [dependsOn];
}
}
return [];
});
}
/**
* Finishes a resource creation RPC operation by resolving its outputs to the resulting RPC payload.

@@ -767,0 +734,0 @@ */

@@ -1,2 +0,2 @@

// This tests the creation of ten propertyless resources.
// This tests that resources cannot depend on things which are not resources.

@@ -3,0 +3,0 @@ let pulumi = require("../../../../../");

@@ -16,3 +16,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "3.122.1-alpha.xddbbbd7";
exports.version = "3.122.1-alpha.xf079f6d";
//# sourceMappingURL=version.js.map

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc