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

@oada/client

Package Overview
Dependencies
Maintainers
8
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oada/client - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

dist/file-type-browser.d.ts

8

dist/client.js

@@ -19,3 +19,2 @@ /**

import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
import { join } from 'node:path';
import { AbortController } from 'abort-controller';

@@ -27,3 +26,3 @@ import { Buffer } from 'buffer';

import { fileTypeFromBuffer } from 'file-type';
import { generate as ksuid } from 'xksuid/src/index.node.mjs';
import { generate as ksuid } from 'xksuid';
import { createNestedObject, fixError, getObjectAtPath, toArray, toArrayPath, toStringPath, } from './utils.js';

@@ -378,3 +377,6 @@ import { HttpClient } from './http.js';

const newkey = ksuid();
return this.put({ ...request, path: join(path, newkey) });
return this.put({
...request,
path: (path.endsWith('/') ? path : `${path}/`) + newkey,
});
}

@@ -381,0 +383,0 @@ const contentType = await __classPrivateFieldGet(this, _OADAClient_instances, "m", _OADAClient_guessContentType).call(this, request, pathArray);

@@ -17,3 +17,3 @@ /**

*/
import { subscribe } from 'event-iterator/lib/dom';
import { subscribe } from 'event-iterator/lib/dom.js';
export async function* on(...[target, event, options]) {

@@ -20,0 +20,0 @@ yield* subscribe.call(target, event, options);

@@ -25,3 +25,3 @@ /**

import { fromString } from 'media-type';
import { generate as ksuid } from 'xksuid/src/index.node.mjs';
import { generate as ksuid } from 'xksuid';
import { assert as assertOADASocketRequest } from '@oada/types/oada/websockets/request.js';

@@ -28,0 +28,0 @@ import { TimeoutError, fixError } from './utils.js';

@@ -24,3 +24,3 @@ /**

import debug from 'debug';
import { generate as ksuid } from 'xksuid/src/index.node.mjs';
import { generate as ksuid } from 'xksuid';
import { setTimeout } from 'isomorphic-timers-promises';

@@ -27,0 +27,0 @@ import { assert as assertOADASocketRequest, } from '@oada/types/oada/websockets/request.js';

@@ -18,4 +18,2 @@ /**

import { join } from 'node:path';
import { AbortController } from 'abort-controller';

@@ -29,3 +27,3 @@ import { Buffer } from 'buffer';

import { fileTypeFromBuffer } from 'file-type';
import { generate as ksuid } from 'xksuid/src/index.node.mjs';
import { generate as ksuid } from 'xksuid';

@@ -871,3 +869,6 @@ import {

const newkey = ksuid();
return this.put({ ...request, path: join(path, newkey) });
return this.put({
...request,
path: (path.endsWith('/') ? path : `${path}/`) + newkey,
});
}

@@ -874,0 +875,0 @@

@@ -26,3 +26,3 @@ /**

import { subscribe } from 'event-iterator/lib/dom';
import { subscribe } from 'event-iterator/lib/dom.js';

@@ -29,0 +29,0 @@ export async function* on(...[target, event, options]: Parameters<typeof onT>) {

@@ -26,3 +26,3 @@ /**

import { fromString } from 'media-type';
import { generate as ksuid } from 'xksuid/src/index.node.mjs';
import { generate as ksuid } from 'xksuid';

@@ -29,0 +29,0 @@ import { assert as assertOADASocketRequest } from '@oada/types/oada/websockets/request.js';

@@ -35,16 +35,2 @@ /**

/**
* Generates new (x)KSUID based on current timestamp
* @param {boolean} desc
* @param {number} timestamp ms
* @returns {string} 27 chars KSUID or 28 chars for xKSUID
*/
declare module 'xksuid' {
export function generate(desc = false, timestamp = Date.now()): string;
}
declare module 'xksuid/src/index.node.mjs' {
export * from 'xksuid';
}
declare module 'media-type' {

@@ -51,0 +37,0 @@ export interface MediaType {

@@ -23,3 +23,3 @@ /**

import debug from 'debug';
import { generate as ksuid } from 'xksuid/src/index.node.mjs';
import { generate as ksuid } from 'xksuid';
import { setTimeout } from 'isomorphic-timers-promises';

@@ -26,0 +26,0 @@

{
"name": "@oada/client",
"version": "4.0.0",
"version": "4.0.1",
"description": "A lightweight client tool to interact with an OADA-compliant server",

@@ -16,3 +16,3 @@ "repository": "https://github.com/OADA/client",

"fetch-h2": false,
"path": "path-browserify",
"file-type": "./dist/file-type-browser.js",
"resolve-alpn": false

@@ -25,3 +25,3 @@ },

"fetch-h2": false,
"path": "path-browserify",
"file-type": "./dist/file-type-browser.js",
"resolve-alpn": false

@@ -92,6 +92,6 @@ },

"supports-color": "^9.2.2",
"tslib": "^2.3.1",
"tslib": "^2.4.0",
"utf-8-validate": "^5.0.9",
"ws": "^8.5.0",
"xksuid": "^0.0.2"
"xksuid": "https://github.com/qlever-llc/xksuid.git#commit=5b2761792b1b1b59ea71ab48df1252fcb851e502"
},

@@ -102,6 +102,3 @@ "devDependencies": {

"@types/debug": "^4.1.7",
"@types/events": "^3.0.0",
"@types/node": "^16.11.27",
"@types/type-is": "^1.6.3",
"@types/uuid": "^8.3.4",
"@types/ws": "^8.5.3",

@@ -113,5 +110,5 @@ "@typescript-eslint/eslint-plugin": "^5.20.0",

"axios": "^0.26.1",
"c8": "^7.11.0",
"c8": "^7.11.2",
"dotenv": "^16.0.0",
"eslint": "^8.13.0",
"eslint": "^8.14.0",
"eslint-config-prettier": "^8.5.0",

@@ -141,11 +138,6 @@ "eslint-config-xo": "^0.40.0",

"eslint-plugin-unicorn": "^42.0.0",
"path-browserify": "^1.0.1",
"prettier": "^2.6.2",
"process": "^0.11.10",
"ts-loader": "^9.2.8",
"typescript": "4.6.3",
"webpack": "^5.72.0",
"webpack-cli": "^4.9.2"
"typescript": "4.6.3"
},
"packageManager": "yarn@3.2.0"
}

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