Socket
Socket
Sign inDemoInstall

ozone-api-upload

Package Overview
Dependencies
3
Maintainers
6
Versions
141
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.2.0 to 5.2.1-alpha.0

7

dist/index.js

@@ -1,1 +0,6 @@

export * from "./ozone-api-upload";
"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"));

21

dist/ozone-api-upload.js

@@ -0,1 +1,2 @@

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -10,5 +11,6 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

};
import { OzoneConfig } from 'ozone-config';
import { OzoneAPIRequest } from "ozone-api-request";
import { v4 as uuid } from 'uuid';
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");
/**

@@ -35,3 +37,3 @@ * UploadFileRequest is a JavaScrip class that can be use as an

*/
export class UploadFileRequest {
class UploadFileRequest {
constructor() {

@@ -136,3 +138,3 @@ /**

}
this.currentRequest = new OzoneAPIRequest();
this.currentRequest = new ozone_api_request_1.OzoneAPIRequest();
return this.currentRequest;

@@ -143,3 +145,3 @@ }

const otherUrlParam = param || [];
const config = yield OzoneConfig.get();
const config = yield ozone_config_1.OzoneConfig.get();
return [

@@ -223,3 +225,3 @@ config.host.replace(/\/$/, ''),

const numeric_id = parseInt('0x' + folderId.split('-')[4]);
const config = yield OzoneConfig.get();
const config = yield ozone_config_1.OzoneConfig.get();
const body = {

@@ -362,5 +364,5 @@ mediaUploadChannelIdentifier: config.uploadChannel,

return __awaiter(this, void 0, void 0, function* () {
const ozoneRequest = new OzoneAPIRequest();
const ozoneRequest = new ozone_api_request_1.OzoneAPIRequest();
const queryParams = {
tenantsPrefix: uuid(),
tenantsPrefix: uuid_1.v4(),
rootTenantId: parentTenantId

@@ -398,1 +400,2 @@ };

}
exports.UploadFileRequest = UploadFileRequest;
{
"name": "ozone-api-upload",
"version": "5.2.0",
"version": "5.2.1-alpha.0",
"publishConfig": {

@@ -24,11 +24,11 @@ "access": "public"

"@types/uuid": "^3.4.4",
"ozone-type": "^5.2.0"
"ozone-type": "^5.2.1-alpha.0"
},
"dependencies": {
"ozone-api-request": "^5.2.0",
"ozone-config": "^5.2.0",
"ozone-api-request": "^5.2.1-alpha.0",
"ozone-config": "^5.2.1-alpha.0",
"uuid": "^3.3.2"
},
"repository": "https://github.com/taktik/ozone-components/packages/ozone-api/ozone-api-upload",
"gitHead": "280daf34ecbb2fe4cdc911a4bf0d9f2c1b7bea23"
"gitHead": "add550ef77b4ff5e528938c9ac750b159ce9636a"
}
{
"compilerOptions": {
"target": "es6",
"module": "esnext", // Use esnext to enable lazy loading
"module": "commonjs", // Use esnext to enable lazy loading
"moduleResolution": "node",

@@ -6,0 +6,0 @@ "experimentalDecorators": true,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc