@googleapis/policyanalyzer 1.0.0
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/CHANGELOG.md +17 -0
- package/README.md +28 -0
- package/build/index.d.ts +17 -0
- package/build/index.js +34 -0
- package/build/index.js.map +1 -0
- package/build/v1.d.ts +223 -0
- package/build/v1.js +106 -0
- package/build/v1.js.map +1 -0
- package/build/v1beta1.d.ts +223 -0
- package/build/v1beta1.js +106 -0
- package/build/v1beta1.js.map +1 -0
- package/index.ts +61 -0
- package/package.json +43 -0
- package/tsconfig.json +10 -0
- package/v1.ts +377 -0
- package/v1beta1.ts +377 -0
- package/webpack.config.js +79 -0
package/v1beta1.ts
ADDED
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
// Copyright 2020 Google LLC
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
|
|
14
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
15
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
16
|
+
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
17
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
18
|
+
/* eslint-disable no-irregular-whitespace */
|
|
19
|
+
|
|
20
|
+
import {
|
|
21
|
+
OAuth2Client,
|
|
22
|
+
JWT,
|
|
23
|
+
Compute,
|
|
24
|
+
UserRefreshClient,
|
|
25
|
+
BaseExternalAccountClient,
|
|
26
|
+
GaxiosPromise,
|
|
27
|
+
GoogleConfigurable,
|
|
28
|
+
createAPIRequest,
|
|
29
|
+
MethodOptions,
|
|
30
|
+
StreamMethodOptions,
|
|
31
|
+
GlobalOptions,
|
|
32
|
+
GoogleAuth,
|
|
33
|
+
BodyResponseCallback,
|
|
34
|
+
APIRequestContext,
|
|
35
|
+
} from 'googleapis-common';
|
|
36
|
+
import {Readable} from 'stream';
|
|
37
|
+
|
|
38
|
+
export namespace policyanalyzer_v1beta1 {
|
|
39
|
+
export interface Options extends GlobalOptions {
|
|
40
|
+
version: 'v1beta1';
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface StandardParameters {
|
|
44
|
+
/**
|
|
45
|
+
* Auth client or API Key for the request
|
|
46
|
+
*/
|
|
47
|
+
auth?:
|
|
48
|
+
| string
|
|
49
|
+
| OAuth2Client
|
|
50
|
+
| JWT
|
|
51
|
+
| Compute
|
|
52
|
+
| UserRefreshClient
|
|
53
|
+
| BaseExternalAccountClient
|
|
54
|
+
| GoogleAuth;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* V1 error format.
|
|
58
|
+
*/
|
|
59
|
+
'$.xgafv'?: string;
|
|
60
|
+
/**
|
|
61
|
+
* OAuth access token.
|
|
62
|
+
*/
|
|
63
|
+
access_token?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Data format for response.
|
|
66
|
+
*/
|
|
67
|
+
alt?: string;
|
|
68
|
+
/**
|
|
69
|
+
* JSONP
|
|
70
|
+
*/
|
|
71
|
+
callback?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Selector specifying which fields to include in a partial response.
|
|
74
|
+
*/
|
|
75
|
+
fields?: string;
|
|
76
|
+
/**
|
|
77
|
+
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
78
|
+
*/
|
|
79
|
+
key?: string;
|
|
80
|
+
/**
|
|
81
|
+
* OAuth 2.0 token for the current user.
|
|
82
|
+
*/
|
|
83
|
+
oauth_token?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Returns response with indentations and line breaks.
|
|
86
|
+
*/
|
|
87
|
+
prettyPrint?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
90
|
+
*/
|
|
91
|
+
quotaUser?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Legacy upload protocol for media (e.g. "media", "multipart").
|
|
94
|
+
*/
|
|
95
|
+
uploadType?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Upload protocol for media (e.g. "raw", "multipart").
|
|
98
|
+
*/
|
|
99
|
+
upload_protocol?: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Policy Analyzer API
|
|
104
|
+
*
|
|
105
|
+
*
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```js
|
|
109
|
+
* const {google} = require('googleapis');
|
|
110
|
+
* const policyanalyzer = google.policyanalyzer('v1beta1');
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
export class Policyanalyzer {
|
|
114
|
+
context: APIRequestContext;
|
|
115
|
+
projects: Resource$Projects;
|
|
116
|
+
|
|
117
|
+
constructor(options: GlobalOptions, google?: GoogleConfigurable) {
|
|
118
|
+
this.context = {
|
|
119
|
+
_options: options || {},
|
|
120
|
+
google,
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
this.projects = new Resource$Projects(this.context);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface Schema$GoogleCloudPolicyanalyzerV1beta1Activity {
|
|
128
|
+
/**
|
|
129
|
+
* A struct of custom fields to explain the activity.
|
|
130
|
+
*/
|
|
131
|
+
activity?: {[key: string]: any} | null;
|
|
132
|
+
/**
|
|
133
|
+
* The type of the activity.
|
|
134
|
+
*/
|
|
135
|
+
activityType?: string | null;
|
|
136
|
+
/**
|
|
137
|
+
* The full resource name that identifies the resource. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
|
|
138
|
+
*/
|
|
139
|
+
fullResourceName?: string | null;
|
|
140
|
+
/**
|
|
141
|
+
* The data observation period to build the activity.
|
|
142
|
+
*/
|
|
143
|
+
observationPeriod?: Schema$GoogleCloudPolicyanalyzerV1beta1ObservationPeriod;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Represents data observation period.
|
|
147
|
+
*/
|
|
148
|
+
export interface Schema$GoogleCloudPolicyanalyzerV1beta1ObservationPeriod {
|
|
149
|
+
/**
|
|
150
|
+
* The observation end time.
|
|
151
|
+
*/
|
|
152
|
+
endTime?: string | null;
|
|
153
|
+
/**
|
|
154
|
+
* The observation start time.
|
|
155
|
+
*/
|
|
156
|
+
startTime?: string | null;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Response to the `QueryActivity` method.
|
|
160
|
+
*/
|
|
161
|
+
export interface Schema$GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse {
|
|
162
|
+
/**
|
|
163
|
+
* The set of activities that match the filter included in the request.
|
|
164
|
+
*/
|
|
165
|
+
activities?: Schema$GoogleCloudPolicyanalyzerV1beta1Activity[];
|
|
166
|
+
/**
|
|
167
|
+
* If there might be more results than those appearing in this response, then `nextPageToken` is included. To get the next set of results, call this method again using the value of `nextPageToken` as `pageToken`.
|
|
168
|
+
*/
|
|
169
|
+
nextPageToken?: string | null;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export class Resource$Projects {
|
|
173
|
+
context: APIRequestContext;
|
|
174
|
+
locations: Resource$Projects$Locations;
|
|
175
|
+
constructor(context: APIRequestContext) {
|
|
176
|
+
this.context = context;
|
|
177
|
+
this.locations = new Resource$Projects$Locations(this.context);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export class Resource$Projects$Locations {
|
|
182
|
+
context: APIRequestContext;
|
|
183
|
+
activityTypes: Resource$Projects$Locations$Activitytypes;
|
|
184
|
+
constructor(context: APIRequestContext) {
|
|
185
|
+
this.context = context;
|
|
186
|
+
this.activityTypes = new Resource$Projects$Locations$Activitytypes(
|
|
187
|
+
this.context
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export class Resource$Projects$Locations$Activitytypes {
|
|
193
|
+
context: APIRequestContext;
|
|
194
|
+
activities: Resource$Projects$Locations$Activitytypes$Activities;
|
|
195
|
+
constructor(context: APIRequestContext) {
|
|
196
|
+
this.context = context;
|
|
197
|
+
this.activities =
|
|
198
|
+
new Resource$Projects$Locations$Activitytypes$Activities(this.context);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export class Resource$Projects$Locations$Activitytypes$Activities {
|
|
203
|
+
context: APIRequestContext;
|
|
204
|
+
constructor(context: APIRequestContext) {
|
|
205
|
+
this.context = context;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Queries policy activities on GCP resources.
|
|
210
|
+
* @example
|
|
211
|
+
* ```js
|
|
212
|
+
* // Before running the sample:
|
|
213
|
+
* // - Enable the API at:
|
|
214
|
+
* // https://console.developers.google.com/apis/api/policyanalyzer.googleapis.com
|
|
215
|
+
* // - Login into gcloud by running:
|
|
216
|
+
* // `$ gcloud auth application-default login`
|
|
217
|
+
* // - Install the npm module by running:
|
|
218
|
+
* // `$ npm install googleapis`
|
|
219
|
+
*
|
|
220
|
+
* const {google} = require('googleapis');
|
|
221
|
+
* const policyanalyzer = google.policyanalyzer('v1beta1');
|
|
222
|
+
*
|
|
223
|
+
* async function main() {
|
|
224
|
+
* const auth = new google.auth.GoogleAuth({
|
|
225
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
226
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
227
|
+
* });
|
|
228
|
+
*
|
|
229
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
230
|
+
* const authClient = await auth.getClient();
|
|
231
|
+
* google.options({auth: authClient});
|
|
232
|
+
*
|
|
233
|
+
* // Do the magic
|
|
234
|
+
* const res =
|
|
235
|
+
* await policyanalyzer.projects.locations.activityTypes.activities.query({
|
|
236
|
+
* // Optional. Optional filter expression to restrict the activities returned. Supported filters are: - service_account_last_authn.full_resource_name {=\} - service_account_key_last_authn.full_resource_name {=\}
|
|
237
|
+
* filter: 'placeholder-value',
|
|
238
|
+
* // Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.
|
|
239
|
+
* pageSize: 'placeholder-value',
|
|
240
|
+
* // Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.
|
|
241
|
+
* pageToken: 'placeholder-value',
|
|
242
|
+
* // Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/
|
|
243
|
+
* parent:
|
|
244
|
+
* 'projects/my-project/locations/my-location/activityTypes/my-activityType',
|
|
245
|
+
* });
|
|
246
|
+
* console.log(res.data);
|
|
247
|
+
*
|
|
248
|
+
* // Example response
|
|
249
|
+
* // {
|
|
250
|
+
* // "activities": [],
|
|
251
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
252
|
+
* // }
|
|
253
|
+
* }
|
|
254
|
+
*
|
|
255
|
+
* main().catch(e => {
|
|
256
|
+
* console.error(e);
|
|
257
|
+
* throw e;
|
|
258
|
+
* });
|
|
259
|
+
*
|
|
260
|
+
* ```
|
|
261
|
+
*
|
|
262
|
+
* @param params - Parameters for request
|
|
263
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
264
|
+
* @param callback - Optional callback that handles the response.
|
|
265
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
266
|
+
*/
|
|
267
|
+
query(
|
|
268
|
+
params: Params$Resource$Projects$Locations$Activitytypes$Activities$Query,
|
|
269
|
+
options: StreamMethodOptions
|
|
270
|
+
): GaxiosPromise<Readable>;
|
|
271
|
+
query(
|
|
272
|
+
params?: Params$Resource$Projects$Locations$Activitytypes$Activities$Query,
|
|
273
|
+
options?: MethodOptions
|
|
274
|
+
): GaxiosPromise<Schema$GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse>;
|
|
275
|
+
query(
|
|
276
|
+
params: Params$Resource$Projects$Locations$Activitytypes$Activities$Query,
|
|
277
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
278
|
+
callback: BodyResponseCallback<Readable>
|
|
279
|
+
): void;
|
|
280
|
+
query(
|
|
281
|
+
params: Params$Resource$Projects$Locations$Activitytypes$Activities$Query,
|
|
282
|
+
options:
|
|
283
|
+
| MethodOptions
|
|
284
|
+
| BodyResponseCallback<Schema$GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse>,
|
|
285
|
+
callback: BodyResponseCallback<Schema$GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse>
|
|
286
|
+
): void;
|
|
287
|
+
query(
|
|
288
|
+
params: Params$Resource$Projects$Locations$Activitytypes$Activities$Query,
|
|
289
|
+
callback: BodyResponseCallback<Schema$GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse>
|
|
290
|
+
): void;
|
|
291
|
+
query(
|
|
292
|
+
callback: BodyResponseCallback<Schema$GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse>
|
|
293
|
+
): void;
|
|
294
|
+
query(
|
|
295
|
+
paramsOrCallback?:
|
|
296
|
+
| Params$Resource$Projects$Locations$Activitytypes$Activities$Query
|
|
297
|
+
| BodyResponseCallback<Schema$GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse>
|
|
298
|
+
| BodyResponseCallback<Readable>,
|
|
299
|
+
optionsOrCallback?:
|
|
300
|
+
| MethodOptions
|
|
301
|
+
| StreamMethodOptions
|
|
302
|
+
| BodyResponseCallback<Schema$GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse>
|
|
303
|
+
| BodyResponseCallback<Readable>,
|
|
304
|
+
callback?:
|
|
305
|
+
| BodyResponseCallback<Schema$GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse>
|
|
306
|
+
| BodyResponseCallback<Readable>
|
|
307
|
+
):
|
|
308
|
+
| void
|
|
309
|
+
| GaxiosPromise<Schema$GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse>
|
|
310
|
+
| GaxiosPromise<Readable> {
|
|
311
|
+
let params = (paramsOrCallback ||
|
|
312
|
+
{}) as Params$Resource$Projects$Locations$Activitytypes$Activities$Query;
|
|
313
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
314
|
+
|
|
315
|
+
if (typeof paramsOrCallback === 'function') {
|
|
316
|
+
callback = paramsOrCallback;
|
|
317
|
+
params =
|
|
318
|
+
{} as Params$Resource$Projects$Locations$Activitytypes$Activities$Query;
|
|
319
|
+
options = {};
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
if (typeof optionsOrCallback === 'function') {
|
|
323
|
+
callback = optionsOrCallback;
|
|
324
|
+
options = {};
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
const rootUrl =
|
|
328
|
+
options.rootUrl || 'https://policyanalyzer.googleapis.com/';
|
|
329
|
+
const parameters = {
|
|
330
|
+
options: Object.assign(
|
|
331
|
+
{
|
|
332
|
+
url: (rootUrl + '/v1beta1/{+parent}/activities:query').replace(
|
|
333
|
+
/([^:]\/)\/+/g,
|
|
334
|
+
'$1'
|
|
335
|
+
),
|
|
336
|
+
method: 'GET',
|
|
337
|
+
},
|
|
338
|
+
options
|
|
339
|
+
),
|
|
340
|
+
params,
|
|
341
|
+
requiredParams: ['parent'],
|
|
342
|
+
pathParams: ['parent'],
|
|
343
|
+
context: this.context,
|
|
344
|
+
};
|
|
345
|
+
if (callback) {
|
|
346
|
+
createAPIRequest<Schema$GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse>(
|
|
347
|
+
parameters,
|
|
348
|
+
callback as BodyResponseCallback<unknown>
|
|
349
|
+
);
|
|
350
|
+
} else {
|
|
351
|
+
return createAPIRequest<Schema$GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse>(
|
|
352
|
+
parameters
|
|
353
|
+
);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
export interface Params$Resource$Projects$Locations$Activitytypes$Activities$Query
|
|
359
|
+
extends StandardParameters {
|
|
360
|
+
/**
|
|
361
|
+
* Optional. Optional filter expression to restrict the activities returned. Supported filters are: - service_account_last_authn.full_resource_name {=\} - service_account_key_last_authn.full_resource_name {=\}
|
|
362
|
+
*/
|
|
363
|
+
filter?: string;
|
|
364
|
+
/**
|
|
365
|
+
* Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.
|
|
366
|
+
*/
|
|
367
|
+
pageSize?: number;
|
|
368
|
+
/**
|
|
369
|
+
* Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.
|
|
370
|
+
*/
|
|
371
|
+
pageToken?: string;
|
|
372
|
+
/**
|
|
373
|
+
* Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/
|
|
374
|
+
*/
|
|
375
|
+
parent?: string;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// Copyright 2019 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
// Use `npm run webpack` to produce Webpack bundle for this library.
|
|
16
|
+
|
|
17
|
+
const path = require('path');
|
|
18
|
+
|
|
19
|
+
module.exports = {
|
|
20
|
+
entry: './index.ts',
|
|
21
|
+
resolve: {
|
|
22
|
+
extensions: ['.ts', '.js', '.json'],
|
|
23
|
+
fallback: {
|
|
24
|
+
crypto: false,
|
|
25
|
+
child_process: false,
|
|
26
|
+
fs: false,
|
|
27
|
+
http2: false,
|
|
28
|
+
buffer: 'browserify',
|
|
29
|
+
process: false,
|
|
30
|
+
os: false,
|
|
31
|
+
querystring: false,
|
|
32
|
+
path: false,
|
|
33
|
+
stream: 'stream-browserify',
|
|
34
|
+
url: false,
|
|
35
|
+
util: false,
|
|
36
|
+
zlib: false,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
output: {
|
|
40
|
+
library: 'Policyanalyzer',
|
|
41
|
+
filename: 'policyanalyzer.min.js',
|
|
42
|
+
path: path.resolve(__dirname, 'dist'),
|
|
43
|
+
},
|
|
44
|
+
module: {
|
|
45
|
+
rules: [
|
|
46
|
+
{
|
|
47
|
+
test: /node_modules[\\/]google-auth-library[\\/]src[\\/]crypto[\\/]node[\\/]crypto/,
|
|
48
|
+
use: 'null-loader',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
test: /node_modules[\\/]https-proxy-agent[\\/]/,
|
|
52
|
+
use: 'null-loader',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
test: /node_modules[\\/]gcp-metadata[\\/]/,
|
|
56
|
+
use: 'null-loader',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
test: /node_modules[\\/]gtoken[\\/]/,
|
|
60
|
+
use: 'null-loader',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
test: /node_modules[\\/]pkginfo[\\/]/,
|
|
64
|
+
use: 'null-loader',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
test: /node_modules[\\/]semver[\\/]/,
|
|
68
|
+
use: 'null-loader',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
test: /\.ts$/,
|
|
72
|
+
use: 'ts-loader',
|
|
73
|
+
exclude: /node_modules/,
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
mode: 'production',
|
|
78
|
+
plugins: [],
|
|
79
|
+
};
|