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.12 to 0.1.13

1

dist/compressjs/constants.d.ts

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

export declare const GET_SINGLE_UPLOAD = "/external/upload/jobid";
export declare const GET_JOBID_PROGRESS = "/external/upload/job_progress/jobid";
export declare const SET_PUBLISHED_UPLOAD = "/external/upload/set_published";

@@ -12,0 +13,0 @@ export declare const CREATE_UPLOAD = "/external/upload/create";

3

dist/compressjs/constants.esm.js

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

var GET_SINGLE_UPLOAD = "".concat(GET_UPLOADS, "/jobid");
var GET_JOBID_PROGRESS = "".concat(GET_UPLOADS, "/job_progress/jobid");
var SET_PUBLISHED_UPLOAD = "".concat(GET_UPLOADS, "/set_published");

@@ -35,3 +36,3 @@ var CREATE_UPLOAD = "".concat(GET_UPLOADS, "/create");

export { ADD_VIDEO_THUMB, AUTH_LOGIN, CREATE_CATEGORY, CREATE_UPLOAD, GET_CATEGORIES, 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, 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

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

var GET_SINGLE_UPLOAD = "".concat(GET_UPLOADS, "/jobid");
var GET_JOBID_PROGRESS = "".concat(GET_UPLOADS, "/job_progress/jobid");
var SET_PUBLISHED_UPLOAD = "".concat(GET_UPLOADS, "/set_published");

@@ -42,2 +43,3 @@ var CREATE_UPLOAD = "".concat(GET_UPLOADS, "/create");

exports.GET_CATEGORIES = GET_CATEGORIES;
exports.GET_JOBID_PROGRESS = GET_JOBID_PROGRESS;
exports.GET_RESTREAMERS = GET_RESTREAMERS;

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

@@ -14,2 +14,3 @@ export declare class TangramClient {

encode(path: any, title: any, tags: any, location_place: any, category_id: any): Promise<any>;
get_jobid_progress(job_id: any): Promise<any>;
get_restreamers(start_from: any, amount: any): Promise<any>;

@@ -16,0 +17,0 @@ get_restreamer(instance_name: any): Promise<any>;

import { __awaiter, __generator } from '../_virtual/_tslib.esm.js';
import { TNGRM_BASE_URL, SIGN_S3_URL, S3_SPACE, GET_CATEGORIES, PRESIGNED_URL_S3, ADD_VIDEO_THUMB, CREATE_UPLOAD, GET_RESTREAMERS, GET_RUNNING_SINGLE_INSTANCE, GET_RUNNING_INSTANCES, SCALE_RESTREAMER, GET_UPLOADS, GET_SINGLE_UPLOAD, SET_PUBLISHED_UPLOAD } from './constants.esm.js';
import { TNGRM_BASE_URL, SIGN_S3_URL, S3_SPACE, GET_CATEGORIES, PRESIGNED_URL_S3, ADD_VIDEO_THUMB, CREATE_UPLOAD, GET_JOBID_PROGRESS, GET_RESTREAMERS, GET_RUNNING_SINGLE_INSTANCE, GET_RUNNING_INSTANCES, SCALE_RESTREAMER, GET_UPLOADS, GET_SINGLE_UPLOAD, SET_PUBLISHED_UPLOAD } from './constants.esm.js';

@@ -259,2 +259,26 @@ var TangramClient = (function () {

};
TangramClient.prototype.get_jobid_progress = function (job_id) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4, fetch(TNGRM_BASE_URL + GET_JOBID_PROGRESS, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
api_key: this.api_key,
job_id: job_id,
}),
}).then(function (res) {
if (!res.ok) {
throw new Error("something went wrong during create upload, ".concat(res.status, " ").concat(res.statusText));
}
return res.json();
})];
case 1: return [2, _a.sent()];
}
});
});
};
TangramClient.prototype.get_restreamers = function (start_from, amount) {

@@ -350,3 +374,3 @@ return __awaiter(this, void 0, void 0, function () {

client_id: "".concat(this.customer_name, "_client"),
restreamer_name: restreamer_name,
instance_name: restreamer_name,
scale: parseInt(scale_value)

@@ -353,0 +377,0 @@ }),

@@ -261,2 +261,26 @@ 'use strict';

};
TangramClient.prototype.get_jobid_progress = function (job_id) {
return _tslib.__awaiter(this, void 0, void 0, function () {
return _tslib.__generator(this, function (_a) {
switch (_a.label) {
case 0: return [4, fetch(constants.TNGRM_BASE_URL + constants.GET_JOBID_PROGRESS, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
api_key: this.api_key,
job_id: job_id,
}),
}).then(function (res) {
if (!res.ok) {
throw new Error("something went wrong during create upload, ".concat(res.status, " ").concat(res.statusText));
}
return res.json();
})];
case 1: return [2, _a.sent()];
}
});
});
};
TangramClient.prototype.get_restreamers = function (start_from, amount) {

@@ -352,3 +376,3 @@ return _tslib.__awaiter(this, void 0, void 0, function () {

client_id: "".concat(this.customer_name, "_client"),
restreamer_name: restreamer_name,
instance_name: restreamer_name,
scale: parseInt(scale_value)

@@ -355,0 +379,0 @@ }),

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

export { ADD_VIDEO_THUMB, AUTH_LOGIN, CREATE_CATEGORY, CREATE_UPLOAD, GET_CATEGORIES, 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, 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

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

exports.GET_CATEGORIES = constants.GET_CATEGORIES;
exports.GET_JOBID_PROGRESS = constants.GET_JOBID_PROGRESS;
exports.GET_RESTREAMERS = constants.GET_RESTREAMERS;

@@ -16,0 +17,0 @@ exports.GET_RUNNING_INSTANCES = constants.GET_RUNNING_INSTANCES;

{
"name": "compress-nodejs",
"private": false,
"version": "0.1.12",
"version": "0.1.13",
"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