Skip to content

Commit b59edd1

Browse files
committed
chore: remove samples directory
1 parent 784e63a commit b59edd1

11 files changed

Lines changed: 32 additions & 39 deletions

File tree

handwritten/storage/conformance-test/scenarios/scenarioFive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ const retryTestCase: RetryTestCase | undefined = testFile.retryTests.find(
2525
describe(`Scenario ${SCENARIO_NUMBER_TO_TEST}`, () => {
2626
assert(retryTestCase);
2727
executeScenario(retryTestCase);
28-
});
28+
});

handwritten/storage/conformance-test/testBenchUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ export function createTestFileFromBuffer(sizeInMb: number, path: string): void {
5151

5252
export function deleteTestFile(path: string): void {
5353
unlinkSync(path);
54-
}
54+
}

handwritten/storage/conformance-test/v4SignedUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,4 +284,4 @@ function parseUrlStyle(
284284
} else {
285285
return {virtualHostedStyle: false};
286286
}
287-
}
287+
}

handwritten/storage/package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@google-cloud/storage",
33
"description": "Cloud Storage Client Library for Node.js",
4-
"version": "7.19.0",
4+
"version": "7.20.0",
55
"license": "Apache-2.0",
66
"author": "Google Inc.",
77
"engines": {
@@ -47,7 +47,7 @@
4747
"storage"
4848
],
4949
"scripts": {
50-
"all-test": "npm test && npm run system-test && npm run samples-test",
50+
"all-test": "npm test && npm run system-test",
5151
"benchwrapper": "node bin/benchwrapper.js",
5252
"check": "gts check",
5353
"clean": "rm -rf build/",
@@ -65,12 +65,10 @@
6565
"preconformance-test": "npm run compile:cjs -- --sourceMap",
6666
"predocs-test": "npm run docs",
6767
"predocs": "npm run compile:cjs -- --sourceMap",
68-
"prelint": "cd samples; npm link ../; npm install",
6968
"prepare": "npm run compile",
7069
"presystem-test:esm": "npm run compile:esm",
7170
"presystem-test": "npm run compile -- --sourceMap",
7271
"pretest": "npm run compile -- --sourceMap",
73-
"samples-test": "npm link && cd samples/ && npm link ../ && npm test && cd ../",
7472
"system-test:esm": "mocha build/esm/system-test --timeout 600000 --exit",
7573
"system-test": "mocha build/cjs/system-test --timeout 600000 --exit",
7674
"test": "c8 mocha build/cjs/test"
@@ -83,7 +81,6 @@
8381
"fast-xml-parser": "^5.2.0",
8482
"gaxios": "^7.0.0-rc.4",
8583
"google-auth-library": "^10.1.0",
86-
"html-entities": "^2.6.0",
8784
"mime": "3.0.0",
8885
"p-limit": "3.1.0",
8986
"uuid": "^11.1.0"
@@ -107,7 +104,6 @@
107104
"@types/uuid": "^10.0.0",
108105
"@types/yargs": "^17.0.33",
109106
"c8": "^10.1.3",
110-
"form-data": "^4.0.4",
111107
"gapic-tools": "^1.0.1",
112108
"gts": "^6.0.2",
113109
"jsdoc": "^4.0.4",

handwritten/storage/src/hmacKey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,4 +418,4 @@ export class HmacKey extends ServiceObject<HmacKey, HmacKeyMetadata> {
418418
* All async methods (except for streams) will return a Promise in the event
419419
* that a callback is omitted.
420420
*/
421-
promisifyAll(HmacKey);
421+
promisifyAll(HmacKey);

handwritten/storage/src/iam.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,4 +511,4 @@ class Iam {
511511
*/
512512
promisifyAll(Iam);
513513

514-
export {Iam};
514+
export {Iam};

handwritten/storage/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,4 +269,4 @@ export {
269269
} from './notification.js';
270270
export {GetSignedUrlCallback, GetSignedUrlResponse} from './signer.js';
271271
export * from './transfer-manager.js';
272-
export * from 'gaxios';
272+
export * from 'gaxios';

handwritten/storage/src/transfer-manager.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ export class TransferManager {
630630
let files: File[] = [];
631631

632632
const baseDestination = path.resolve(
633-
options.passthroughOptions?.destination || '.'
633+
options.passthroughOptions?.destination || '.',
634634
);
635635

636636
if (!Array.isArray(filesOrFolder)) {
@@ -724,7 +724,7 @@ export class TransferManager {
724724
await fsp.mkdir(path.dirname(destination), {recursive: true});
725725

726726
const resp = (await file.download(
727-
passThroughOptionsCopy
727+
passThroughOptionsCopy,
728728
)) as DownloadResponseWithStatus;
729729

730730
finalResults[i] = {
@@ -742,7 +742,7 @@ export class TransferManager {
742742
errorResp.error = err as Error;
743743
finalResults[i] = errorResp;
744744
}
745-
})
745+
}),
746746
);
747747
}
748748

@@ -941,7 +941,7 @@ export class TransferManager {
941941
promises = [];
942942
}
943943
promises.push(
944-
limit(() => mpuHelper.uploadPart(partNumber++, curChunk, validation))
944+
limit(() => mpuHelper.uploadPart(partNumber++, curChunk, validation)),
945945
);
946946
}
947947
await Promise.all(promises);

handwritten/storage/src/util.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ export class PassThroughShim extends PassThrough {
274274
}
275275
}
276276

277-
278277
/**
279278
* Validates Object Contexts for forbidden characters.
280279
* Double quotes (") are forbidden in context keys and values as they
@@ -289,12 +288,12 @@ export function validateContexts(contexts?: FileMetadata['contexts']): void {
289288
for (const [key, context] of Object.entries(custom)) {
290289
if (key.includes('"')) {
291290
throw new Error(
292-
`Invalid context key "${key}": Forbidden character (") detected.`
291+
`Invalid context key "${key}": Forbidden character (") detected.`,
293292
);
294293
}
295294
if (context?.value && context.value.includes('"')) {
296295
throw new Error(
297-
`Invalid context value for key "${key}": Forbidden character (") detected.`
296+
`Invalid context value for key "${key}": Forbidden character (") detected.`,
298297
);
299298
}
300299
}
@@ -307,7 +306,7 @@ export function validateContexts(contexts?: FileMetadata['contexts']): void {
307306
*/
308307
export function handleContextValidation(
309308
contexts?: FileMetadata['contexts'],
310-
callback?: Function
309+
callback?: Function,
311310
// eslint-disable-next-line @typescript-eslint/no-explicit-any
312311
): Promise<any> | void {
313312
try {

handwritten/storage/system-test/storage.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import assert from 'assert';
1616
import {after, afterEach, before, beforeEach, describe, it} from 'mocha';
1717
import * as crypto from 'crypto';
1818
import * as fs from 'fs';
19-
import fetch from 'node-fetch';
20-
import FormData from 'form-data';
2119
import pLimit from 'p-limit';
2220
import * as path from 'path';
2321
import * as tmp from 'tmp';
@@ -434,9 +432,9 @@ describe('storage', function () {
434432
resumable: false,
435433
});
436434
const [metadata] = await file.getMetadata();
437-
const encyrptionAlgorithm =
435+
const encryptionAlgorithm =
438436
metadata.customerEncryption?.encryptionAlgorithm;
439-
assert.strictEqual(encyrptionAlgorithm, 'AES256');
437+
assert.strictEqual(encryptionAlgorithm, 'AES256');
440438
});
441439

442440
it('should set custom encryption in a resumable upload', async () => {
@@ -446,9 +444,9 @@ describe('storage', function () {
446444
resumable: true,
447445
});
448446
const [metadata] = await file.getMetadata();
449-
const encyrptionAlgorithm =
447+
const encryptionAlgorithm =
450448
metadata.customerEncryption?.encryptionAlgorithm;
451-
assert.strictEqual(encyrptionAlgorithm, 'AES256');
449+
assert.strictEqual(encryptionAlgorithm, 'AES256');
452450
});
453451

454452
it('should make a file public during the upload', async () => {

0 commit comments

Comments
 (0)