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

@itarius-ug/docuware-api-client

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@itarius-ug/docuware-api-client - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

10

dist/docuware.js

@@ -22,2 +22,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

var _DocuWare_instances, _DocuWare_username, _DocuWare_password, _DocuWare_impersonateName, _DocuWare_baseUrl, _DocuWare_token, _DocuWare_expiration, _DocuWare_userAgent, _DocuWare_send, _DocuWare_get, _DocuWare_post, _DocuWare_put, _DocuWare_isExpired;
import { fileTypeFromBuffer } from "file-type";
import { readFile } from "fs/promises";

@@ -36,3 +37,3 @@ import ky from "ky";

_DocuWare_expiration.set(this, null);
_DocuWare_userAgent.set(this, "itarius/docuware-api-client");
_DocuWare_userAgent.set(this, "@itarius-ug/docuware-api-client");
__classPrivateFieldSet(this, _DocuWare_baseUrl, `${configuration.baseUrl}/DocuWare/Platform`, "f");

@@ -43,3 +44,3 @@ __classPrivateFieldSet(this, _DocuWare_username, configuration.username, "f");

if (userAgent) {
__classPrivateFieldSet(this, _DocuWare_userAgent, `itarius/docuware-api-client - ${userAgent}`, "f");
__classPrivateFieldSet(this, _DocuWare_userAgent, userAgent, "f");
}

@@ -199,6 +200,11 @@ }

appendBufferToDocument(fileCabinetId, documentId, buffer, options) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
const { mime } = (_a = (yield fileTypeFromBuffer(buffer.content))) !== null && _a !== void 0 ? _a : {
mime: "text/plain",
};
yield __classPrivateFieldGet(this, _DocuWare_instances, "m", _DocuWare_post).call(this, `${__classPrivateFieldGet(this, _DocuWare_baseUrl, "f")}/filecabinets/${fileCabinetId}/Sections?DocId=${documentId}`, Object.assign({ headers: {
"Content-Disposition": `file; filename="${buffer.name}"`,
"X-File-ModifiedDate": new Date().toISOString(),
"Content-Type": mime,
}, body: buffer.content }, (options !== null && options !== void 0 ? options : {})));

@@ -205,0 +211,0 @@ });

{
"name": "@itarius-ug/docuware-api-client",
"version": "2.2.1",
"version": "2.2.2",
"description": "A TypeScript wrapper for the DocuWare REST API",

@@ -26,3 +26,4 @@ "main": "dist/index.js",

"dependencies": {
"ky": "^1.5.0"
"file-type": "^19.4.1",
"ky": "^1.6.0"
},

@@ -29,0 +30,0 @@ "devDependencies": {

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