@digitalocean/functions-deployer 5.0.18 → 5.0.19

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/lib/api.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { DeployStructure, DeployResponse, Credentials, Flags, Includer, Feedback } from './deploy-struct';
2
- import openwhisk = require('openwhisk');
3
2
  export declare function initializeAPI(userAgent: string): {
4
3
  [key: string]: string;
5
4
  };
@@ -13,4 +12,3 @@ export declare function buildProject(project: DeployStructure): Promise<DeploySt
13
12
  export declare function prepareToDeploy(inputSpec: DeployStructure, credentials: Credentials, flags: Flags): Promise<DeployStructure>;
14
13
  export declare function getMessageFromError(err: any): string;
15
14
  export declare function wipeNamespace(credentials: Credentials): Promise<void>;
16
- export declare function wipePackage(name: string, host: string, auth: string, credentials: Credentials): Promise<openwhisk.Package>;
@@ -7,7 +7,6 @@ export interface PackageSpec {
7
7
  annotations?: Dict;
8
8
  parameters?: Dict;
9
9
  environment?: Dict;
10
- clean?: boolean;
11
10
  web?: any;
12
11
  deployedDuringBuild?: boolean;
13
12
  binding?: BindingSpec;
@@ -34,7 +33,6 @@ export interface ActionSpec {
34
33
  parameters?: Dict;
35
34
  environment?: Dict;
36
35
  limits?: Limits;
37
- clean?: boolean;
38
36
  remoteBuild?: boolean;
39
37
  localBuild?: boolean;
40
38
  triggers?: TriggerSpec[];
@@ -84,7 +82,6 @@ export declare class DefaultFeedback implements Feedback {
84
82
  export interface DeployStructure {
85
83
  packages?: PackageSpec[];
86
84
  targetNamespace?: string;
87
- cleanNamespace?: boolean;
88
85
  parameters?: Dict;
89
86
  environment?: Dict;
90
87
  slice?: boolean;
@@ -111,7 +108,7 @@ export interface VersionInfo {
111
108
  export interface VersionMap {
112
109
  [key: string]: VersionInfo;
113
110
  }
114
- export type DeployKind = 'web' | 'action' | 'trigger' | 'binding';
111
+ export type DeployKind = 'action' | 'trigger' | 'binding';
115
112
  export interface DeploySuccess {
116
113
  name: string;
117
114
  kind: DeployKind;
@@ -125,18 +122,12 @@ export interface DeployResponse {
125
122
  packageVersions: VersionMap;
126
123
  actionVersions: VersionMap;
127
124
  apihost?: string;
128
- webHashes?: {
129
- [key: string]: string;
130
- };
131
125
  }
132
126
  export interface VersionEntry {
133
127
  apihost: string;
134
128
  namespace: string;
135
129
  packageVersions: VersionMap;
136
130
  actionVersions: VersionMap;
137
- webHashes: {
138
- [key: string]: string;
139
- };
140
131
  }
141
132
  export interface DeployerAnnotation {
142
133
  repository?: string;
package/lib/deploy.d.ts CHANGED
@@ -1,11 +1,10 @@
1
- import { DeployStructure, DeployResponse, ActionSpec, PackageSpec, VersionEntry, Credentials } from './deploy-struct';
1
+ import { DeployStructure, DeployResponse, ActionSpec, PackageSpec } from './deploy-struct';
2
2
  import openwhisk from 'openwhisk';
3
3
  type Exec = openwhisk.Exec & {
4
4
  image?: string;
5
5
  };
6
- export declare function cleanOrLoadVersions(todeploy: DeployStructure): Promise<DeployStructure>;
6
+ export declare function maybeLoadVersions(todeploy: DeployStructure): Promise<DeployStructure>;
7
7
  export declare function doDeploy(todeploy: DeployStructure): Promise<DeployResponse>;
8
- export declare function cleanPackage(client: openwhisk.Client, credentials: Credentials, name: string, versions: VersionEntry): Promise<openwhisk.Package>;
9
8
  export declare function onlyDeployPackage(pkg: PackageSpec, spec: DeployStructure): Promise<DeployResponse>;
10
9
  export declare function deployPackage(pkg: PackageSpec, spec: DeployStructure, skipPkgDeploy: boolean): Promise<DeployResponse>;
11
10
  export declare function calculateActionExec(action: ActionSpec, code: string): Exec;
@@ -2,7 +2,7 @@ import { DeployStructure, PackageSpec, ProjectReader } from './deploy-struct';
2
2
  export declare const BUILDER_NAMESPACE: string;
3
3
  export declare function getBuildForAction(filepath: string, reader: ProjectReader): Promise<string>;
4
4
  export declare function buildAllActions(spec: DeployStructure): Promise<PackageSpec[]>;
5
- export declare function getBuildForLibOrWeb(filepath: string, reader: ProjectReader, lib: boolean): Promise<string>;
5
+ export declare function getBuildForLib(filepath: string, reader: ProjectReader): Promise<string>;
6
6
  export declare function maybeBuildLib(spec: DeployStructure): Promise<void>;
7
- export declare function checkIncludeItems(items: string[], web: boolean): string;
7
+ export declare function checkIncludeItems(items: string[]): string;
8
8
  export declare function getRemoteBuildName(): string;
package/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { initializeAPI, deployProject, readPrepareAndBuild, readAndPrepare, deploy, readProject, buildProject, prepareToDeploy, wipeNamespace, wipePackage, getUserAgent } from './api';
1
+ export { initializeAPI, deployProject, readPrepareAndBuild, readAndPrepare, deploy, readProject, buildProject, prepareToDeploy, wipeNamespace, getUserAgent } from './api';
2
2
  export { DeployStructure, DeployResponse, DeploySuccess, OWOptions, Credentials, CredentialRow, Flags, PackageSpec, ActionSpec, CredentialHostMap, CredentialNSMap, DeployerAnnotation, VersionMap, Feedback, DefaultFeedback, FullCredentials, IdProvider } from './deploy-struct';
3
3
  export { addCredentialAndSave, getCredentials, getCredentialList, getCredentialDict, getCredentialsForNamespace, forgetNamespace, switchNamespace, getCurrentNamespace, getApiHosts, Persister, authPersister, getCredentialsFromEnvironment, nimbellaDir } from './credentials';
4
4
  export { wskRequest, delay, writeSliceResult, getBestProjectName, renamePackage, getExclusionList, isExcluded, SYSTEM_EXCLUDE_PATTERNS, getRuntimeForAction, emptyStructure, invokeWebSecure, renameActionsToFunctions, deleteAction } from './util';