Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

compress-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compress-nodejs - npm Package Compare versions

Comparing version 0.1.13 to 0.1.14

1

dist/compressjs/constants.d.ts

@@ -18,2 +18,3 @@ export declare const TNGRM_BASE_URL = "https://api.tngrm.io/api/v3.0";

export declare const SCALE_RESTREAMER = "/external/restreamers/scale_instance";
export declare const CREDENTIALS = "/external/credentials/";
export declare const PERMITTED_FILE_EXTENSIONS: string[];

3

dist/compressjs/constants.esm.js

@@ -18,2 +18,3 @@ var TNGRM_BASE_URL = "https://api.tngrm.io/api/v3.0";

var SCALE_RESTREAMER = "".concat(GET_RESTREAMERS, "/scale_instance");
var CREDENTIALS = "/external/credentials/";
var PERMITTED_FILE_EXTENSIONS = [

@@ -36,3 +37,3 @@ ".mov",

export { ADD_VIDEO_THUMB, AUTH_LOGIN, CREATE_CATEGORY, CREATE_UPLOAD, GET_CATEGORIES, GET_JOBID_PROGRESS, GET_RESTREAMERS, GET_RUNNING_INSTANCES, GET_RUNNING_SINGLE_INSTANCE, GET_SINGLE_UPLOAD, GET_UPLOADS, PERMITTED_FILE_EXTENSIONS, PRESIGNED_URL_S3, S3_SPACE, SCALE_RESTREAMER, SET_PUBLISHED_UPLOAD, SIGN_S3_URL, TNGRM_BASE_URL };
export { ADD_VIDEO_THUMB, AUTH_LOGIN, CREATE_CATEGORY, CREATE_UPLOAD, CREDENTIALS, GET_CATEGORIES, GET_JOBID_PROGRESS, GET_RESTREAMERS, GET_RUNNING_INSTANCES, GET_RUNNING_SINGLE_INSTANCE, GET_SINGLE_UPLOAD, GET_UPLOADS, PERMITTED_FILE_EXTENSIONS, PRESIGNED_URL_S3, S3_SPACE, SCALE_RESTREAMER, SET_PUBLISHED_UPLOAD, SIGN_S3_URL, TNGRM_BASE_URL };
//# sourceMappingURL=constants.esm.js.map

@@ -20,2 +20,3 @@ 'use strict';

var SCALE_RESTREAMER = "".concat(GET_RESTREAMERS, "/scale_instance");
var CREDENTIALS = "/external/credentials/";
var PERMITTED_FILE_EXTENSIONS = [

@@ -42,2 +43,3 @@ ".mov",

exports.CREATE_UPLOAD = CREATE_UPLOAD;
exports.CREDENTIALS = CREDENTIALS;
exports.GET_CATEGORIES = GET_CATEGORIES;

@@ -44,0 +46,0 @@ exports.GET_JOBID_PROGRESS = GET_JOBID_PROGRESS;

@@ -13,3 +13,3 @@ export declare class TangramClient {

upload_with_encoding(destination_folder: any, file: any, title: any, tags: any, location_place: any, category_id: any): Promise<any>;
encode(path: any, title: any, tags: any, location_place: any, category_id: any): Promise<any>;
encode(uploaded_filename: any, file: any, title: any, tags: any, location_place: any, category_id: any): Promise<any>;
get_jobid_progress(job_id: any): Promise<any>;

@@ -16,0 +16,0 @@ get_restreamers(start_from: any, amount: any): Promise<any>;

@@ -202,24 +202,3 @@ import { __awaiter, __generator } from '../_virtual/_tslib.esm.js';

console.log("upload ", upload);
return [4, fetch(TNGRM_BASE_URL + CREATE_UPLOAD, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
api_key: this.api_key,
title: title,
tags: tags,
category: parseInt(category_id),
location: location_place,
filename: file_dest,
size: parseInt(file.size),
reporter_email: "".concat(this.customer_name, "@tngrm.io"),
}),
})
.then(function (res) {
if (!res.ok) {
throw new Error("something went wrong during create upload, ".concat(res.status, " ").concat(res.statusText));
}
return res.json();
})];
return [4, this.encode(file_dest, file, title, tags, location_place, category_id)];
case 2: return [2, _a.sent()];

@@ -230,3 +209,3 @@ }

};
TangramClient.prototype.encode = function (path, title, tags, location_place, category_id) {
TangramClient.prototype.encode = function (uploaded_filename, file, title, tags, location_place, category_id) {
return __awaiter(this, void 0, void 0, function () {

@@ -246,4 +225,4 @@ return __generator(this, function (_a) {

location: location_place,
filename: path,
size: 0,
filename: uploaded_filename,
size: parseInt(file.size),
reporter_email: "".concat(this.customer_name, "@tngrm.io"),

@@ -250,0 +229,0 @@ }),

@@ -204,24 +204,3 @@ 'use strict';

console.log("upload ", upload);
return [4, fetch(constants.TNGRM_BASE_URL + constants.CREATE_UPLOAD, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
api_key: this.api_key,
title: title,
tags: tags,
category: parseInt(category_id),
location: location_place,
filename: file_dest,
size: parseInt(file.size),
reporter_email: "".concat(this.customer_name, "@tngrm.io"),
}),
})
.then(function (res) {
if (!res.ok) {
throw new Error("something went wrong during create upload, ".concat(res.status, " ").concat(res.statusText));
}
return res.json();
})];
return [4, this.encode(file_dest, file, title, tags, location_place, category_id)];
case 2: return [2, _a.sent()];

@@ -232,3 +211,3 @@ }

};
TangramClient.prototype.encode = function (path, title, tags, location_place, category_id) {
TangramClient.prototype.encode = function (uploaded_filename, file, title, tags, location_place, category_id) {
return _tslib.__awaiter(this, void 0, void 0, function () {

@@ -248,4 +227,4 @@ return _tslib.__generator(this, function (_a) {

location: location_place,
filename: path,
size: 0,
filename: uploaded_filename,
size: parseInt(file.size),
reporter_email: "".concat(this.customer_name, "@tngrm.io"),

@@ -252,0 +231,0 @@ }),

@@ -1,4 +0,4 @@

export { ADD_VIDEO_THUMB, AUTH_LOGIN, CREATE_CATEGORY, CREATE_UPLOAD, GET_CATEGORIES, GET_JOBID_PROGRESS, GET_RESTREAMERS, GET_RUNNING_INSTANCES, GET_RUNNING_SINGLE_INSTANCE, GET_SINGLE_UPLOAD, GET_UPLOADS, PERMITTED_FILE_EXTENSIONS, PRESIGNED_URL_S3, S3_SPACE, SCALE_RESTREAMER, SET_PUBLISHED_UPLOAD, SIGN_S3_URL, TNGRM_BASE_URL } from './compressjs/constants.esm.js';
export { ADD_VIDEO_THUMB, AUTH_LOGIN, CREATE_CATEGORY, CREATE_UPLOAD, CREDENTIALS, GET_CATEGORIES, GET_JOBID_PROGRESS, GET_RESTREAMERS, GET_RUNNING_INSTANCES, GET_RUNNING_SINGLE_INSTANCE, GET_SINGLE_UPLOAD, GET_UPLOADS, PERMITTED_FILE_EXTENSIONS, PRESIGNED_URL_S3, S3_SPACE, SCALE_RESTREAMER, SET_PUBLISHED_UPLOAD, SIGN_S3_URL, TNGRM_BASE_URL } from './compressjs/constants.esm.js';
export { fetchWrapper } from './compressjs/fetch-wrapper.esm.js';
export { TangramClient } from './compressjs/tangram.esm.js';
//# sourceMappingURL=index.esm.js.map

@@ -13,2 +13,3 @@ 'use strict';

exports.CREATE_UPLOAD = constants.CREATE_UPLOAD;
exports.CREDENTIALS = constants.CREDENTIALS;
exports.GET_CATEGORIES = constants.GET_CATEGORIES;

@@ -15,0 +16,0 @@ exports.GET_JOBID_PROGRESS = constants.GET_JOBID_PROGRESS;

{
"name": "compress-nodejs",
"private": false,
"version": "0.1.13",
"version": "0.1.14",
"description": "The Compress NodeJS library provides access to the Compress API for encoding videos, restreamers",

@@ -6,0 +6,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc