@pulumi/docker-build 0.0.1-alpha.100
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/LICENSE +202 -0
- package/README.md +23 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +6 -0
- package/config/vars.js +21 -0
- package/config/vars.js.map +1 -0
- package/image.d.ts +916 -0
- package/image.js +567 -0
- package/image.js.map +1 -0
- package/index.d.ts +13 -0
- package/index.js +58 -0
- package/index.js.map +1 -0
- package/index_.d.ts +152 -0
- package/index_.js +142 -0
- package/index_.js.map +1 -0
- package/package.json +29 -0
- package/package.json.dev +28 -0
- package/provider.d.ts +31 -0
- package/provider.js +41 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/types/enums/index.d.ts +72 -0
- package/types/enums/index.js +74 -0
- package/types/enums/index.js.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +13 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +765 -0
- package/types/input.js +118 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +764 -0
- package/types/output.js +117 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +8 -0
- package/utilities.js +101 -0
- package/utilities.js.map +1 -0
package/types/output.js
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.exportRegistryProvideDefaults = exports.exportOCIProvideDefaults = exports.exportImageProvideDefaults = exports.exportDockerProvideDefaults = exports.exportProvideDefaults = exports.cacheToS3ProvideDefaults = exports.cacheToRegistryProvideDefaults = exports.cacheToLocalProvideDefaults = exports.cacheToGitHubActionsProvideDefaults = exports.cacheToAzureBlobProvideDefaults = exports.cacheToProvideDefaults = exports.cacheFromS3ProvideDefaults = exports.cacheFromGitHubActionsProvideDefaults = exports.cacheFromProvideDefaults = void 0;
|
|
6
|
+
const outputs = require("../types/output");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* cacheFromProvideDefaults sets the appropriate defaults for CacheFrom
|
|
10
|
+
*/
|
|
11
|
+
function cacheFromProvideDefaults(val) {
|
|
12
|
+
return Object.assign(Object.assign({}, val), { gha: (val.gha ? outputs.cacheFromGitHubActionsProvideDefaults(val.gha) : undefined), s3: (val.s3 ? outputs.cacheFromS3ProvideDefaults(val.s3) : undefined) });
|
|
13
|
+
}
|
|
14
|
+
exports.cacheFromProvideDefaults = cacheFromProvideDefaults;
|
|
15
|
+
/**
|
|
16
|
+
* cacheFromGitHubActionsProvideDefaults sets the appropriate defaults for CacheFromGitHubActions
|
|
17
|
+
*/
|
|
18
|
+
function cacheFromGitHubActionsProvideDefaults(val) {
|
|
19
|
+
var _a, _b, _c;
|
|
20
|
+
return Object.assign(Object.assign({}, val), { scope: (_a = (val.scope)) !== null && _a !== void 0 ? _a : (utilities.getEnv("buildkit") || ""), token: (_b = (val.token)) !== null && _b !== void 0 ? _b : (utilities.getEnv("ACTIONS_RUNTIME_TOKEN") || ""), url: (_c = (val.url)) !== null && _c !== void 0 ? _c : (utilities.getEnv("ACTIONS_CACHE_URL") || "") });
|
|
21
|
+
}
|
|
22
|
+
exports.cacheFromGitHubActionsProvideDefaults = cacheFromGitHubActionsProvideDefaults;
|
|
23
|
+
/**
|
|
24
|
+
* cacheFromS3ProvideDefaults sets the appropriate defaults for CacheFromS3
|
|
25
|
+
*/
|
|
26
|
+
function cacheFromS3ProvideDefaults(val) {
|
|
27
|
+
var _a, _b, _c, _d;
|
|
28
|
+
return Object.assign(Object.assign({}, val), { accessKeyId: (_a = (val.accessKeyId)) !== null && _a !== void 0 ? _a : (utilities.getEnv("AWS_ACCESS_KEY_ID") || ""), region: (_b = (val.region)) !== null && _b !== void 0 ? _b : (utilities.getEnv("AWS_REGION") || ""), secretAccessKey: (_c = (val.secretAccessKey)) !== null && _c !== void 0 ? _c : (utilities.getEnv("AWS_SECRET_ACCESS_KEY") || ""), sessionToken: (_d = (val.sessionToken)) !== null && _d !== void 0 ? _d : (utilities.getEnv("AWS_SESSION_TOKEN") || "") });
|
|
29
|
+
}
|
|
30
|
+
exports.cacheFromS3ProvideDefaults = cacheFromS3ProvideDefaults;
|
|
31
|
+
/**
|
|
32
|
+
* cacheToProvideDefaults sets the appropriate defaults for CacheTo
|
|
33
|
+
*/
|
|
34
|
+
function cacheToProvideDefaults(val) {
|
|
35
|
+
return Object.assign(Object.assign({}, val), { azblob: (val.azblob ? outputs.cacheToAzureBlobProvideDefaults(val.azblob) : undefined), gha: (val.gha ? outputs.cacheToGitHubActionsProvideDefaults(val.gha) : undefined), local: (val.local ? outputs.cacheToLocalProvideDefaults(val.local) : undefined), registry: (val.registry ? outputs.cacheToRegistryProvideDefaults(val.registry) : undefined), s3: (val.s3 ? outputs.cacheToS3ProvideDefaults(val.s3) : undefined) });
|
|
36
|
+
}
|
|
37
|
+
exports.cacheToProvideDefaults = cacheToProvideDefaults;
|
|
38
|
+
/**
|
|
39
|
+
* cacheToAzureBlobProvideDefaults sets the appropriate defaults for CacheToAzureBlob
|
|
40
|
+
*/
|
|
41
|
+
function cacheToAzureBlobProvideDefaults(val) {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
return Object.assign(Object.assign({}, val), { ignoreError: (_a = (val.ignoreError)) !== null && _a !== void 0 ? _a : false, mode: (_b = (val.mode)) !== null && _b !== void 0 ? _b : "min" });
|
|
44
|
+
}
|
|
45
|
+
exports.cacheToAzureBlobProvideDefaults = cacheToAzureBlobProvideDefaults;
|
|
46
|
+
/**
|
|
47
|
+
* cacheToGitHubActionsProvideDefaults sets the appropriate defaults for CacheToGitHubActions
|
|
48
|
+
*/
|
|
49
|
+
function cacheToGitHubActionsProvideDefaults(val) {
|
|
50
|
+
var _a, _b, _c, _d, _e;
|
|
51
|
+
return Object.assign(Object.assign({}, val), { ignoreError: (_a = (val.ignoreError)) !== null && _a !== void 0 ? _a : false, mode: (_b = (val.mode)) !== null && _b !== void 0 ? _b : "min", scope: (_c = (val.scope)) !== null && _c !== void 0 ? _c : (utilities.getEnv("buildkit") || ""), token: (_d = (val.token)) !== null && _d !== void 0 ? _d : (utilities.getEnv("ACTIONS_RUNTIME_TOKEN") || ""), url: (_e = (val.url)) !== null && _e !== void 0 ? _e : (utilities.getEnv("ACTIONS_CACHE_URL") || "") });
|
|
52
|
+
}
|
|
53
|
+
exports.cacheToGitHubActionsProvideDefaults = cacheToGitHubActionsProvideDefaults;
|
|
54
|
+
/**
|
|
55
|
+
* cacheToLocalProvideDefaults sets the appropriate defaults for CacheToLocal
|
|
56
|
+
*/
|
|
57
|
+
function cacheToLocalProvideDefaults(val) {
|
|
58
|
+
var _a, _b, _c, _d, _e;
|
|
59
|
+
return Object.assign(Object.assign({}, val), { compression: (_a = (val.compression)) !== null && _a !== void 0 ? _a : "gzip", compressionLevel: (_b = (val.compressionLevel)) !== null && _b !== void 0 ? _b : 0, forceCompression: (_c = (val.forceCompression)) !== null && _c !== void 0 ? _c : false, ignoreError: (_d = (val.ignoreError)) !== null && _d !== void 0 ? _d : false, mode: (_e = (val.mode)) !== null && _e !== void 0 ? _e : "min" });
|
|
60
|
+
}
|
|
61
|
+
exports.cacheToLocalProvideDefaults = cacheToLocalProvideDefaults;
|
|
62
|
+
/**
|
|
63
|
+
* cacheToRegistryProvideDefaults sets the appropriate defaults for CacheToRegistry
|
|
64
|
+
*/
|
|
65
|
+
function cacheToRegistryProvideDefaults(val) {
|
|
66
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
67
|
+
return Object.assign(Object.assign({}, val), { compression: (_a = (val.compression)) !== null && _a !== void 0 ? _a : "gzip", compressionLevel: (_b = (val.compressionLevel)) !== null && _b !== void 0 ? _b : 0, forceCompression: (_c = (val.forceCompression)) !== null && _c !== void 0 ? _c : false, ignoreError: (_d = (val.ignoreError)) !== null && _d !== void 0 ? _d : false, imageManifest: (_e = (val.imageManifest)) !== null && _e !== void 0 ? _e : false, mode: (_f = (val.mode)) !== null && _f !== void 0 ? _f : "min", ociMediaTypes: (_g = (val.ociMediaTypes)) !== null && _g !== void 0 ? _g : true });
|
|
68
|
+
}
|
|
69
|
+
exports.cacheToRegistryProvideDefaults = cacheToRegistryProvideDefaults;
|
|
70
|
+
/**
|
|
71
|
+
* cacheToS3ProvideDefaults sets the appropriate defaults for CacheToS3
|
|
72
|
+
*/
|
|
73
|
+
function cacheToS3ProvideDefaults(val) {
|
|
74
|
+
var _a, _b, _c, _d, _e, _f;
|
|
75
|
+
return Object.assign(Object.assign({}, val), { accessKeyId: (_a = (val.accessKeyId)) !== null && _a !== void 0 ? _a : (utilities.getEnv("AWS_ACCESS_KEY_ID") || ""), ignoreError: (_b = (val.ignoreError)) !== null && _b !== void 0 ? _b : false, mode: (_c = (val.mode)) !== null && _c !== void 0 ? _c : "min", region: (_d = (val.region)) !== null && _d !== void 0 ? _d : (utilities.getEnv("AWS_REGION") || ""), secretAccessKey: (_e = (val.secretAccessKey)) !== null && _e !== void 0 ? _e : (utilities.getEnv("AWS_SECRET_ACCESS_KEY") || ""), sessionToken: (_f = (val.sessionToken)) !== null && _f !== void 0 ? _f : (utilities.getEnv("AWS_SESSION_TOKEN") || "") });
|
|
76
|
+
}
|
|
77
|
+
exports.cacheToS3ProvideDefaults = cacheToS3ProvideDefaults;
|
|
78
|
+
/**
|
|
79
|
+
* exportProvideDefaults sets the appropriate defaults for Export
|
|
80
|
+
*/
|
|
81
|
+
function exportProvideDefaults(val) {
|
|
82
|
+
return Object.assign(Object.assign({}, val), { docker: (val.docker ? outputs.exportDockerProvideDefaults(val.docker) : undefined), image: (val.image ? outputs.exportImageProvideDefaults(val.image) : undefined), oci: (val.oci ? outputs.exportOCIProvideDefaults(val.oci) : undefined), registry: (val.registry ? outputs.exportRegistryProvideDefaults(val.registry) : undefined) });
|
|
83
|
+
}
|
|
84
|
+
exports.exportProvideDefaults = exportProvideDefaults;
|
|
85
|
+
/**
|
|
86
|
+
* exportDockerProvideDefaults sets the appropriate defaults for ExportDocker
|
|
87
|
+
*/
|
|
88
|
+
function exportDockerProvideDefaults(val) {
|
|
89
|
+
var _a, _b, _c, _d, _e;
|
|
90
|
+
return Object.assign(Object.assign({}, val), { compression: (_a = (val.compression)) !== null && _a !== void 0 ? _a : "gzip", compressionLevel: (_b = (val.compressionLevel)) !== null && _b !== void 0 ? _b : 0, forceCompression: (_c = (val.forceCompression)) !== null && _c !== void 0 ? _c : false, ociMediaTypes: (_d = (val.ociMediaTypes)) !== null && _d !== void 0 ? _d : false, tar: (_e = (val.tar)) !== null && _e !== void 0 ? _e : true });
|
|
91
|
+
}
|
|
92
|
+
exports.exportDockerProvideDefaults = exportDockerProvideDefaults;
|
|
93
|
+
/**
|
|
94
|
+
* exportImageProvideDefaults sets the appropriate defaults for ExportImage
|
|
95
|
+
*/
|
|
96
|
+
function exportImageProvideDefaults(val) {
|
|
97
|
+
var _a, _b, _c, _d, _e;
|
|
98
|
+
return Object.assign(Object.assign({}, val), { compression: (_a = (val.compression)) !== null && _a !== void 0 ? _a : "gzip", compressionLevel: (_b = (val.compressionLevel)) !== null && _b !== void 0 ? _b : 0, forceCompression: (_c = (val.forceCompression)) !== null && _c !== void 0 ? _c : false, ociMediaTypes: (_d = (val.ociMediaTypes)) !== null && _d !== void 0 ? _d : false, store: (_e = (val.store)) !== null && _e !== void 0 ? _e : true });
|
|
99
|
+
}
|
|
100
|
+
exports.exportImageProvideDefaults = exportImageProvideDefaults;
|
|
101
|
+
/**
|
|
102
|
+
* exportOCIProvideDefaults sets the appropriate defaults for ExportOCI
|
|
103
|
+
*/
|
|
104
|
+
function exportOCIProvideDefaults(val) {
|
|
105
|
+
var _a, _b, _c, _d, _e;
|
|
106
|
+
return Object.assign(Object.assign({}, val), { compression: (_a = (val.compression)) !== null && _a !== void 0 ? _a : "gzip", compressionLevel: (_b = (val.compressionLevel)) !== null && _b !== void 0 ? _b : 0, forceCompression: (_c = (val.forceCompression)) !== null && _c !== void 0 ? _c : false, ociMediaTypes: (_d = (val.ociMediaTypes)) !== null && _d !== void 0 ? _d : true, tar: (_e = (val.tar)) !== null && _e !== void 0 ? _e : true });
|
|
107
|
+
}
|
|
108
|
+
exports.exportOCIProvideDefaults = exportOCIProvideDefaults;
|
|
109
|
+
/**
|
|
110
|
+
* exportRegistryProvideDefaults sets the appropriate defaults for ExportRegistry
|
|
111
|
+
*/
|
|
112
|
+
function exportRegistryProvideDefaults(val) {
|
|
113
|
+
var _a, _b, _c, _d, _e, _f;
|
|
114
|
+
return Object.assign(Object.assign({}, val), { compression: (_a = (val.compression)) !== null && _a !== void 0 ? _a : "gzip", compressionLevel: (_b = (val.compressionLevel)) !== null && _b !== void 0 ? _b : 0, forceCompression: (_c = (val.forceCompression)) !== null && _c !== void 0 ? _c : false, ociMediaTypes: (_d = (val.ociMediaTypes)) !== null && _d !== void 0 ? _d : false, push: (_e = (val.push)) !== null && _e !== void 0 ? _e : true, store: (_f = (val.store)) !== null && _f !== void 0 ? _f : true });
|
|
115
|
+
}
|
|
116
|
+
exports.exportRegistryProvideDefaults = exportRegistryProvideDefaults;
|
|
117
|
+
//# sourceMappingURL=output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,2CAA2C;AAG3C,0CAA0C;AAwE1C;;GAEG;AACH,SAAgB,wBAAwB,CAAC,GAAc;IACnD,uCACO,GAAG,KACN,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,qCAAqC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EACnF,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE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AC,GAAc;;IACnD,uCACO,GAAG,KACN,WAAW,EAAE,MAAA,CAAC,GAAG,CAAC,WAAW,CAAC,mCAAI,MAAM,EACxC,gBAAgB,EAAE,MAAA,CAAC,GAAG,CAAC,gBAAgB,CAAC,mCAAI,CAAC,EAC7C,gBAAgB,EAAE,MAAA,CAAC,GAAG,CAAC,gBAAgB,CAAC,mCAAI,KAAK,EACjD,aAAa,EAAE,MAAA,CAAC,GAAG,CAAC,aAAa,CAAC,mCAAI,IAAI,EAC1C,GAAG,EAAE,MAAA,CAAC,GAAG,CAAC,GAAG,CAAC,mCAAI,IAAI,IACxB;AACN,CAAC;AATD,4DASC;AA+DD;;GAEG;AACH,SAAgB,6BAA6B,CAAC,GAAmB;;IAC7D,uCACO,GAAG,KACN,WAAW,EAAE,MAAA,CAAC,GAAG,CAAC,WAAW,CAAC,mCAAI,MAAM,EACxC,gBAAgB,EAAE,MAAA,CAAC,GAAG,CAAC,gBAAgB,CAAC,mCAAI,CAAC,EAC7C,gBAAgB,EAAE,MAAA,CAAC,GAAG,CAAC,gBAAgB,CAAC,mCAAI,KAAK,EACjD,aAAa,EAAE,MAAA,CAAC,GAAG,CAAC,aAAa,CAAC,mCAAI,KAAK,EAC3C,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,IAAI,EACxB,KAAK,EAAE,MAAA,CAAC,GAAG,CAAC,KAAK,CAAC,mCAAI,IAAI,IAC5B;AACN,CAAC;AAVD,sEAUC"}
|
package/utilities.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
3
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
4
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
5
|
+
export declare function getVersion(): string;
|
|
6
|
+
export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
|
|
7
|
+
property?: string;
|
|
8
|
+
}): Promise<T>;
|
package/utilities.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
|
+
const runtime = require("@pulumi/pulumi/runtime");
|
|
16
|
+
function getEnv(...vars) {
|
|
17
|
+
for (const v of vars) {
|
|
18
|
+
const value = process.env[v];
|
|
19
|
+
if (value) {
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
exports.getEnv = getEnv;
|
|
26
|
+
function getEnvBoolean(...vars) {
|
|
27
|
+
const s = getEnv(...vars);
|
|
28
|
+
if (s !== undefined) {
|
|
29
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
30
|
+
// Terraform uses internally when parsing boolean values.
|
|
31
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
exports.getEnvBoolean = getEnvBoolean;
|
|
41
|
+
function getEnvNumber(...vars) {
|
|
42
|
+
const s = getEnv(...vars);
|
|
43
|
+
if (s !== undefined) {
|
|
44
|
+
const f = parseFloat(s);
|
|
45
|
+
if (!isNaN(f)) {
|
|
46
|
+
return f;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
exports.getEnvNumber = getEnvNumber;
|
|
52
|
+
function getVersion() {
|
|
53
|
+
let version = require('./package.json').version;
|
|
54
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
55
|
+
// If there is a v, strip it off.
|
|
56
|
+
if (version.indexOf('v') === 0) {
|
|
57
|
+
version = version.slice(1);
|
|
58
|
+
}
|
|
59
|
+
return version;
|
|
60
|
+
}
|
|
61
|
+
exports.getVersion = getVersion;
|
|
62
|
+
/** @internal */
|
|
63
|
+
function resourceOptsDefaults() {
|
|
64
|
+
return { version: getVersion() };
|
|
65
|
+
}
|
|
66
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
67
|
+
/** @internal */
|
|
68
|
+
function lazyLoad(exports, props, loadModule) {
|
|
69
|
+
for (let property of props) {
|
|
70
|
+
Object.defineProperty(exports, property, {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () {
|
|
73
|
+
return loadModule()[property];
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.lazyLoad = lazyLoad;
|
|
79
|
+
function callAsync(tok, props, res, opts) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const o = runtime.call(tok, props, res);
|
|
82
|
+
const value = yield o.promise(true /*withUnknowns*/);
|
|
83
|
+
const isKnown = yield o.isKnown;
|
|
84
|
+
const isSecret = yield o.isSecret;
|
|
85
|
+
const problem = !isKnown ? "an unknown value"
|
|
86
|
+
: isSecret ? "a secret value"
|
|
87
|
+
: undefined;
|
|
88
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
89
|
+
if (problem) {
|
|
90
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
91
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
92
|
+
}
|
|
93
|
+
// Extract a single property if requested.
|
|
94
|
+
if (opts && opts.property) {
|
|
95
|
+
return value[opts.property];
|
|
96
|
+
}
|
|
97
|
+
return value;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
exports.callAsync = callAsync;
|
|
101
|
+
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAA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