ozone-api-upload
Advanced tools
Comparing version 5.2.1-alpha.0 to 5.2.1
@@ -1,6 +0,1 @@ | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./ozone-api-upload")); | ||
export * from "./ozone-api-upload"; |
@@ -1,2 +0,1 @@ | ||
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -11,6 +10,5 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const ozone_config_1 = require("ozone-config"); | ||
const ozone_api_request_1 = require("ozone-api-request"); | ||
const uuid_1 = require("uuid"); | ||
import { OzoneConfig } from 'ozone-config'; | ||
import { OzoneAPIRequest } from "ozone-api-request"; | ||
import { v4 as uuid } from 'uuid'; | ||
/** | ||
@@ -37,3 +35,3 @@ * UploadFileRequest is a JavaScrip class that can be use as an | ||
*/ | ||
class UploadFileRequest { | ||
export class UploadFileRequest { | ||
constructor() { | ||
@@ -138,3 +136,3 @@ /** | ||
} | ||
this.currentRequest = new ozone_api_request_1.OzoneAPIRequest(); | ||
this.currentRequest = new OzoneAPIRequest(); | ||
return this.currentRequest; | ||
@@ -145,3 +143,3 @@ } | ||
const otherUrlParam = param || []; | ||
const config = yield ozone_config_1.OzoneConfig.get(); | ||
const config = yield OzoneConfig.get(); | ||
return [ | ||
@@ -225,3 +223,3 @@ config.host.replace(/\/$/, ''), | ||
const numeric_id = parseInt('0x' + folderId.split('-')[4]); | ||
const config = yield ozone_config_1.OzoneConfig.get(); | ||
const config = yield OzoneConfig.get(); | ||
const body = { | ||
@@ -364,5 +362,5 @@ mediaUploadChannelIdentifier: config.uploadChannel, | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const ozoneRequest = new ozone_api_request_1.OzoneAPIRequest(); | ||
const ozoneRequest = new OzoneAPIRequest(); | ||
const queryParams = { | ||
tenantsPrefix: uuid_1.v4(), | ||
tenantsPrefix: uuid(), | ||
rootTenantId: parentTenantId | ||
@@ -400,2 +398,1 @@ }; | ||
} | ||
exports.UploadFileRequest = UploadFileRequest; |
{ | ||
"name": "ozone-api-upload", | ||
"version": "5.2.1-alpha.0", | ||
"version": "5.2.1", | ||
"publishConfig": { | ||
@@ -24,11 +24,11 @@ "access": "public" | ||
"@types/uuid": "^3.4.4", | ||
"ozone-type": "^5.2.1-alpha.0" | ||
"ozone-type": "^5.2.1" | ||
}, | ||
"dependencies": { | ||
"ozone-api-request": "^5.2.1-alpha.0", | ||
"ozone-config": "^5.2.1-alpha.0", | ||
"ozone-api-request": "^5.2.1", | ||
"ozone-config": "^5.2.1", | ||
"uuid": "^3.3.2" | ||
}, | ||
"repository": "https://github.com/taktik/ozone-components/packages/ozone-api/ozone-api-upload", | ||
"gitHead": "add550ef77b4ff5e528938c9ac750b159ce9636a" | ||
"gitHead": "713378763117304f56664509f5ccec75cb189e9d" | ||
} |
{ | ||
"compilerOptions": { | ||
"target": "es6", | ||
"module": "commonjs", // Use esnext to enable lazy loading | ||
"module": "esnext", // Use esnext to enable lazy loading | ||
"moduleResolution": "node", | ||
@@ -6,0 +6,0 @@ "experimentalDecorators": true, |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
39343
1058
Updatedozone-api-request@^5.2.1
Updatedozone-config@^5.2.1