New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rest-on-couch-client

Package Overview
Dependencies
Maintainers
6
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rest-on-couch-client - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

0

lib-es6/base/BaseRoc.js
export default class BaseRoc {
}

@@ -0,0 +0,0 @@ import { RocClientError } from '../Error';

@@ -0,0 +0,0 @@ export default class BaseRocQuery {

@@ -0,0 +0,0 @@ export default class BaseRocReduceQuery {

@@ -0,0 +0,0 @@ import BaseRoc from './BaseRoc';

@@ -0,0 +0,0 @@ export class RocHTTPError extends Error {

@@ -0,0 +0,0 @@ import sampleToc from './sampleToc';

@@ -0,0 +0,0 @@ import { randomBytes } from 'crypto';

export * from './fake';
export * from './real';
export * from './base';

@@ -0,0 +0,0 @@ import Query from './Query';

@@ -0,0 +0,0 @@ import BaseRocQuery from '../base/BaseRocQuery';

@@ -0,0 +0,0 @@ import { BaseRocReduceQuery } from '../base';

@@ -0,0 +0,0 @@ import axios from 'axios';

1

lib-es6/real/RocDocument.js

@@ -12,2 +12,3 @@ import BaseRocDocument from '../base/BaseRocDocument';

const url = new URL(name, this.getBaseUrl()).href;
// @ts-ignore
const response = await this.request({

@@ -14,0 +15,0 @@ url,

@@ -0,0 +0,0 @@ import { produce } from 'immer';

@@ -0,0 +0,0 @@ import { BaseRocReduceQuery } from '.';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { IQueryOptions, IQueryResult, PromisedQueryResult } from '../types';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { IReduceQueryOptions, IReduceQueryResult, PromisedReduceQueryResult } from '../types';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import BaseRoc from './BaseRoc';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class RocHTTPError extends Error {

@@ -0,0 +0,0 @@ "use strict";

import { IFakeRocData } from '..';
export declare function getTestData(): IFakeRocData;

@@ -0,0 +0,0 @@ "use strict";

import { IQueryResult } from '../../types';
declare const data: IQueryResult[];
export default data;

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export * from './fake';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import Query from './Query';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { AxiosInstance } from 'axios';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { AxiosInstance } from 'axios';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { BaseRocReduceQuery } from '../base';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

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

const url = new URL(name, this.getBaseUrl()).href;
// @ts-ignore
const response = await this.request({

@@ -16,0 +17,0 @@ url,

import { IDocumentDraft, INewAttachment } from '../types';
export declare function addInlineUploads(entry: IDocumentDraft, attachments: INewAttachment[]): Promise<IDocumentDraft>;
export declare function deleteInlineUploads(entry: IDocumentDraft, attachmentNames: string[]): IDocumentDraft;

@@ -0,0 +0,0 @@ "use strict";

2

lib/types.d.ts
/// <reference types="node" />
import { ResponseType } from 'axios';
export interface IRocOptions {

@@ -66,3 +67,2 @@ url: string;

}
declare type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream';
export interface IFetchAttachmentOptions {

@@ -69,0 +69,0 @@ type: ResponseType | 'buffer';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
{
"name": "rest-on-couch-client",
"version": "2.0.0",
"version": "2.1.0",
"description": "A nodejs / browser client for rest-on-couch backend",

@@ -38,12 +38,13 @@ "main": "./lib/index.js",

"devDependencies": {
"@types/jest": "^24.0.11",
"jest": "^24.5.0",
"rimraf": "^2.6.3",
"ts-jest": "^24.0.0",
"typescript": "^3.3.4000"
"@types/jest": "^24.0.23",
"jest": "^24.9.0",
"rimraf": "^3.0.0",
"ts-jest": "^24.2.0",
"typescript": "^3.7.2"
},
"dependencies": {
"axios": "^0.18.0",
"immer": "^2.1.4"
"@types/node": "^12.12.14",
"axios": "^0.19.0",
"immer": "^5.0.0"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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