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.1-alpha.0 to 5.2.1

7

dist/index.js

@@ -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";

21

dist/ozone-api-upload.js

@@ -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,

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