@google-cloud/storage-control
Version:
Cloud Storage API client for Node.js
34 lines • 1.56 kB
JavaScript
;
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
Object.defineProperty(exports, "__esModule", { value: true });
const fs = require("fs");
const proto_utils_1 = require("./proto_utils");
const uber_client_builder_1 = require("./uber_client_builder");
const index_fix_utils_1 = require("./index_fix_utils");
const samples_and_doc_fix_utils_1 = require("./samples_and_doc_fix_utils");
async function main() {
(0, index_fix_utils_1.fixIndexFile)('src/index.ts');
(0, index_fix_utils_1.fixV2Index)('v2/index.ts');
(0, proto_utils_1.cleanObjectReferences)(proto_utils_1.filesToUpdate, proto_utils_1.replacements);
(0, samples_and_doc_fix_utils_1.updateSamples)();
(0, samples_and_doc_fix_utils_1.fixDocsHeaders)();
const finaloutput = await (0, uber_client_builder_1.buildOutput)();
fs.writeFile('../storage_control_client.ts', finaloutput, err => {
if (err)
throw err;
});
}
main().catch(err => console.error(err));
//# sourceMappingURL=storage_control_utils.js.map