Skip to content

Commit d3f5a61

Browse files
authored
Remove mp4 image format from dts
1 parent 6e85826 commit d3f5a61

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

test/api_spec.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const itBehavesLike = helper.itBehavesLike;
1616
const TEST_TAG = helper.TEST_TAG;
1717
const UPLOAD_TAGS = helper.UPLOAD_TAGS;
1818
const uploadImage = helper.uploadImage;
19-
const TEST_ID = helper.TEST_ID;
19+
const TEST_ID = Date.now();
2020
const SUFFIX = helper.SUFFIX;
2121
const PUBLIC_ID_PREFIX = "npm_api_test";
2222
const PUBLIC_ID = PUBLIC_ID_PREFIX + SUFFIX;
@@ -47,6 +47,9 @@ const EXPLICIT_TRANSFORMATION2 = {
4747
const METADATA_EXTERNAL_ID_UPLOAD = "metadata_upload_" + TEST_ID;
4848
const METADATA_EXTERNAL_ID_UPDATE = "metadata_uploader_update_" + TEST_ID;
4949
const METADATA_EXTERNAL_ID_EXPLICIT = "metadata_explicit_" + TEST_ID;
50+
const LABEL_INT_1 = 'metadata_label_1_' + TEST_ID;
51+
const LABEL_INT_2 = 'metadata_label_2_' + TEST_ID;
52+
const LABEL_INT_3 = 'metadata_label_3_' + TEST_ID;
5053

5154
sharedExamples("a list with a cursor", function (testFunc, ...args) {
5255
specify(":max_results", function () {
@@ -345,7 +348,7 @@ describe("api", function () {
345348
});
346349
});
347350
it("should allow deleting derived resources by transformations", function () {
348-
this.timeout(helper.TIMEOUT_LONG);
351+
this.timeout(helper.TIMEOUT_LARGE);
349352
return Q.all([
350353
uploadImage({
351354
public_id: PUBLIC_ID_1,
@@ -809,17 +812,17 @@ describe("api", function () {
809812
[
810813
cloudinary.v2.api.add_metadata_field({
811814
external_id: METADATA_EXTERNAL_ID_UPDATE,
812-
label: "subject",
815+
label: LABEL_INT_1,
813816
type: "string",
814817
}),
815818
cloudinary.v2.api.add_metadata_field({
816819
external_id: METADATA_EXTERNAL_ID_UPLOAD,
817-
label: "input",
820+
label: LABEL_INT_2,
818821
type: "string",
819822
}),
820823
cloudinary.v2.api.add_metadata_field({
821824
external_id: METADATA_EXTERNAL_ID_EXPLICIT,
822-
label: "field",
825+
label: LABEL_INT_3,
823826
type: "string",
824827
}),
825828
]

test/spechelper.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const api_http = String(config().upload_prefix).startsWith('http:') ? http : htt
2323
exports.TIMEOUT_SHORT = 5000;
2424
exports.TIMEOUT_MEDIUM = 20000;
2525
exports.TIMEOUT_LONG = 50000;
26+
exports.TIMEOUT_LARGE = 70000;
2627
exports.SUFFIX = process.env.TRAVIS_JOB_ID || Math.floor(Math.random() * 999999);
2728
exports.SDK_TAG = "SDK_TEST"; // identifies resources created by all SDKs tests
2829
exports.TEST_TAG_PREFIX = "cloudinary_npm_test"; // identifies resources created by this SDK's tests

test/structured_metadata_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const Q = require('q');
33
const cloudinary = require("../cloudinary");
44
const helper = require("./spechelper");
55

6-
const TEST_ID = helper.TEST_ID;
6+
const TEST_ID = Date.now();
77
const TEST_TAG = helper.TEST_TAG;
88
const UPLOAD_TAGS = helper.UPLOAD_TAGS;
99
const uploadImage = helper.uploadImage;
@@ -35,7 +35,7 @@ const LABEL_DATE = 'metadata_date_' + TEST_ID;
3535
const api = cloudinary.v2.api;
3636

3737
describe("structured metadata api", function () {
38-
this.timeout(helper.TIMEOUT_MEDIUM);
38+
this.timeout(helper.TIMEOUT_LARGE);
3939

4040
before(function () {
4141
return Q.allSettled(

types/index.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ declare module 'cloudinary' {
225225
| "webp"
226226
| "zip"
227227
| "svg"
228-
| "mp4"
229228
| "webm"
230229
| "wdp"
231230
| "hpx"
@@ -839,7 +838,7 @@ declare module 'cloudinary' {
839838
function upload_large(path: string, callback?: ErrorCallBack): Promise<any>;
840839

841840
function upload_stream(options?: UploadApiOptions, callback?: ErrorCallBack): Promise<any>;
842-
841+
843842
function upload_stream(callback?: ErrorCallBack): Promise<any>;
844843

845844
function upload_tag_params(options?: UploadApiOptions, callback?: ErrorCallBack): Promise<any>;

0 commit comments

Comments
 (0)