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

aimock

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aimock - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

dist/ds.d.ts

2

dist/app.js

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

const express_1 = tslib_1.__importDefault(require("express"));
const ds_1 = require("./ds");
const chat_1 = tslib_1.__importDefault(require("./routes/chat"));
const image_1 = tslib_1.__importDefault(require("./routes/image"));
const text_1 = tslib_1.__importDefault(require("./routes/text"));
const ds_1 = require("./utils/ds");
async function createApp(opts = {}) {

@@ -12,0 +12,0 @@ var _a, _b, _c;

@@ -0,3 +1,3 @@

import { AIMockDS } from '../ds';
import { MockType } from '../types';
import { AIMockDS } from '../utils/ds';
export declare function chat(ds: AIMockDS, opts?: {

@@ -4,0 +4,0 @@ type?: MockType;

@@ -6,3 +6,3 @@ "use strict";

const express_1 = tslib_1.__importDefault(require("express"));
const tokenize_1 = require("../utils/tokenize");
const tokenize_1 = require("../tokenize");
function chat(ds, opts = {}) {

@@ -9,0 +9,0 @@ const router = express_1.default.Router();

import express from 'express';
import { AIMockDS } from '../ds';
import { MockType } from '../types';
import { AIMockDS } from '../utils/ds';
export declare function text(ds: AIMockDS, opts?: {

@@ -5,0 +5,0 @@ type?: MockType;

@@ -6,3 +6,3 @@ "use strict";

const express_1 = tslib_1.__importDefault(require("express"));
const tokenize_1 = require("../utils/tokenize");
const tokenize_1 = require("../tokenize");
function text(ds, opts = {}) {

@@ -9,0 +9,0 @@ const router = express_1.default.Router();

{
"name": "aimock",
"version": "0.2.6",
"version": "0.2.7",
"description": "An OpenAI api simulator for developing and testing",

@@ -5,0 +5,0 @@ "keywords": [

import express, {Express, Request, Response} from 'express';
import {Server} from 'net';
import {AIMockDS} from './ds';
import chat from './routes/chat';

@@ -8,3 +9,2 @@ import image from './routes/image';

import {MockType} from './types';
import {AIMockDS} from './utils/ds';

@@ -11,0 +11,0 @@ export interface MockApplicationOptions {

import express, {Request, Response} from 'express';
import {AIMockDS} from '../ds';
import {tokenize} from '../tokenize';
import {MockType, openai} from '../types';
import {AIMockDS} from '../utils/ds';
import {tokenize} from '../utils/tokenize';

@@ -7,0 +7,0 @@ interface Message {

import express, {Request, Response, Router} from 'express';
import {AIMockDS} from '../ds';
import {tokenize} from '../tokenize';
import {MockType} from '../types';
import {AIMockDS} from '../utils/ds';
import {tokenize} from '../utils/tokenize';

@@ -7,0 +7,0 @@ interface RequestBody {

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