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

@imaginary-dev/util

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@imaginary-dev/util - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

jest.config.ts

4

dist/util/src/function-definition.d.ts
import { JSONSchema7 } from "json-schema";
import { CreateCompletionRequest } from "openai";
import { CreateCompletionRequest, CreateChatCompletionRequest } from "openai";
export interface ImaginaryFunctionDefinition {

@@ -16,3 +16,3 @@ funcName: string;

export interface ServiceParameters {
openai?: Partial<Omit<CreateCompletionRequest, "prompt">>;
openai?: Partial<Omit<CreateCompletionRequest & CreateChatCompletionRequest, "prompt">>;
}

@@ -19,0 +19,0 @@ export declare const AI_SERVICES: (keyof ServiceParameters)[];

@@ -30,2 +30,5 @@ "use strict";

}
if (jsonSchema.type === "integer") {
return "number";
}
// recursive types

@@ -32,0 +35,0 @@ if (jsonSchema.type === "array" && typeof jsonSchema.items === "object") {

{
"name": "@imaginary-dev/util",
"version": "0.0.3",
"version": "0.0.4",
"description": "",
"main": "dist/util/src/index.js",
"scripts": {
"build": "tsc"
"build": "tsc",
"test": "jest",
"coverage": "jest --coverage"
},
"author": "Sasha Aickin",
"license": "UNLICENSED",
"license": "MIT",
"dependencies": {

@@ -17,6 +19,3 @@ "@microsoft/tsdoc": "^0.14.2",

"@types/object-hash": "^3.0.2"
},
"publishConfig": {
"access": "restricted"
}
}
import { JSONSchema7 } from "json-schema";
import objectHash from "object-hash";
import { CreateCompletionRequest } from "openai";
import { CreateCompletionRequest, CreateChatCompletionRequest } from "openai";
export interface ImaginaryFunctionDefinition {

@@ -15,3 +15,5 @@ funcName: string;

export interface ServiceParameters {
openai?: Partial<Omit<CreateCompletionRequest, "prompt">>;
openai?: Partial<
Omit<CreateCompletionRequest & CreateChatCompletionRequest, "prompt">
>;
}

@@ -18,0 +20,0 @@

@@ -41,2 +41,5 @@ import { JSONSchema7 } from "json-schema";

}
if (jsonSchema.type === "integer") {
return "number";
}

@@ -43,0 +46,0 @@ // recursive types

{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"outDir": "dist",
"declaration": true
"outDir": "dist"
},

@@ -7,0 +6,0 @@ "files": ["src/index.ts"],

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