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

@activepieces/shared

Package Overview
Dependencies
Maintainers
3
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@activepieces/shared - npm Package Compare versions

Comparing version 0.10.62 to 0.10.63

2

package.json
{
"name": "@activepieces/shared",
"version": "0.10.62",
"version": "0.10.63",
"type": "commonjs",

@@ -5,0 +5,0 @@ "dependencies": {

@@ -33,5 +33,3 @@ import { AppConnectionValue } from '../app-connection/app-connection';

};
export type ExecuteExtractPieceMetadata = PiecePackage & {
projectId: string;
};
export type ExecuteExtractPieceMetadata = PiecePackage;
export type ExecuteStepOperation = BaseEngineOperation & {

@@ -38,0 +36,0 @@ stepName: string;

@@ -110,6 +110,6 @@ import { Static } from '@sinclair/typebox';

export declare const FlowTemplateWithoutProjectInformation: import("@sinclair/typebox").TObject<{
name: import("@sinclair/typebox").TString<string>;
description: import("@sinclair/typebox").TString<string>;
created: import("@sinclair/typebox").TString<string>;
updated: import("@sinclair/typebox").TString<string>;
name: import("@sinclair/typebox").TString<string>;
description: import("@sinclair/typebox").TString<string>;
tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;

@@ -116,0 +116,0 @@ pieces: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;

@@ -37,12 +37,18 @@ import { Static } from '@sinclair/typebox';

export type PieceOptionRequest = Static<typeof PieceOptionRequest>;
export declare const AddPieceRequestBody: import("@sinclair/typebox").TObject<{
platformId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
packageType: import("@sinclair/typebox").TEnum<typeof PackageType>;
export declare enum PieceScope {
PROJECT = "PROJECT",
PLATFORM = "PLATFORM"
}
export declare const AddPieceRequestBody: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
packageType: import("@sinclair/typebox").TLiteral<PackageType.ARCHIVE>;
scope: import("@sinclair/typebox").TEnum<typeof PieceScope>;
pieceName: import("@sinclair/typebox").TString<string>;
pieceVersion: import("@sinclair/typebox").TString<string>;
/**
* buffer of the npm package tarball if any
*/
pieceArchive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
}>;
pieceArchive: import("@sinclair/typebox").TUnknown;
}>, import("@sinclair/typebox").TObject<{
packageType: import("@sinclair/typebox").TLiteral<PackageType.REGISTRY>;
scope: import("@sinclair/typebox").TEnum<typeof PieceScope>;
pieceName: import("@sinclair/typebox").TString<string>;
pieceVersion: import("@sinclair/typebox").TString<string>;
}>]>;
export type AddPieceRequestBody = Static<typeof AddPieceRequestBody>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddPieceRequestBody = exports.PieceOptionRequest = exports.GetPieceRequestQuery = exports.ListPiecesRequestQuery = exports.GetPieceRequestParams = exports.GetPieceRequestWithScopeParams = exports.VersionType = exports.ExactVersionType = exports.VERSION_PATTERN = exports.EXACT_VERSION_PATTERN = void 0;
exports.AddPieceRequestBody = exports.PieceScope = exports.PieceOptionRequest = exports.GetPieceRequestQuery = exports.ListPiecesRequestQuery = exports.GetPieceRequestParams = exports.GetPieceRequestWithScopeParams = exports.VersionType = exports.ExactVersionType = exports.VERSION_PATTERN = exports.EXACT_VERSION_PATTERN = void 0;
const typebox_1 = require("@sinclair/typebox");

@@ -35,12 +35,26 @@ const flag_1 = require("../../flag/flag");

});
exports.AddPieceRequestBody = typebox_1.Type.Object({
platformId: typebox_1.Type.Optional(typebox_1.Type.String()),
packageType: typebox_1.Type.Enum(piece_1.PackageType),
pieceName: typebox_1.Type.String(),
pieceVersion: exports.ExactVersionType,
/**
* buffer of the npm package tarball if any
*/
pieceArchive: typebox_1.Type.Optional(typebox_1.Type.Unknown()),
});
var PieceScope;
(function (PieceScope) {
PieceScope["PROJECT"] = "PROJECT";
PieceScope["PLATFORM"] = "PLATFORM";
})(PieceScope || (exports.PieceScope = PieceScope = {}));
exports.AddPieceRequestBody = typebox_1.Type.Union([
typebox_1.Type.Object({
packageType: typebox_1.Type.Literal(piece_1.PackageType.ARCHIVE),
scope: typebox_1.Type.Enum(PieceScope),
pieceName: typebox_1.Type.String(),
pieceVersion: exports.ExactVersionType,
pieceArchive: typebox_1.Type.Unknown(),
}, {
title: 'Private Piece',
}),
typebox_1.Type.Object({
packageType: typebox_1.Type.Literal(piece_1.PackageType.REGISTRY),
scope: typebox_1.Type.Enum(PieceScope),
pieceName: typebox_1.Type.String(),
pieceVersion: exports.ExactVersionType,
}, {
title: 'NPM Piece',
}),
]);
//# sourceMappingURL=piece-requests.js.map

@@ -1,2 +0,2 @@

import { FileId } from '../file';
import { Static } from '@sinclair/typebox';
export declare enum PackageType {

@@ -10,11 +10,20 @@ ARCHIVE = "ARCHIVE",

}
export type PiecePackage = {
packageType: PackageType;
pieceType: PieceType;
pieceName: string;
pieceVersion: string;
archiveId?: FileId;
};
export declare const PrivatePiecePackage: import("@sinclair/typebox").TObject<{
packageType: import("@sinclair/typebox").TLiteral<PackageType.ARCHIVE>;
pieceType: import("@sinclair/typebox").TEnum<typeof PieceType>;
pieceName: import("@sinclair/typebox").TString<string>;
pieceVersion: import("@sinclair/typebox").TString<string>;
archiveId: import("@sinclair/typebox").TString<string>;
}>;
export type PrivatePiecePackage = Static<typeof PrivatePiecePackage>;
export declare const PublicPiecePackage: import("@sinclair/typebox").TObject<{
packageType: import("@sinclair/typebox").TLiteral<PackageType.REGISTRY>;
pieceType: import("@sinclair/typebox").TEnum<typeof PieceType>;
pieceName: import("@sinclair/typebox").TString<string>;
pieceVersion: import("@sinclair/typebox").TString<string>;
}>;
export type PublicPiecePackage = Static<typeof PublicPiecePackage>;
export type PiecePackage = PrivatePiecePackage | PublicPiecePackage;
export declare enum PieceCategory {
CORE = "CORE"
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PieceCategory = exports.PieceType = exports.PackageType = void 0;
exports.PieceCategory = exports.PublicPiecePackage = exports.PrivatePiecePackage = exports.PieceType = exports.PackageType = void 0;
const typebox_1 = require("@sinclair/typebox");
var PackageType;

@@ -14,2 +15,15 @@ (function (PackageType) {

})(PieceType || (exports.PieceType = PieceType = {}));
exports.PrivatePiecePackage = typebox_1.Type.Object({
packageType: typebox_1.Type.Literal(PackageType.ARCHIVE),
pieceType: typebox_1.Type.Enum(PieceType),
pieceName: typebox_1.Type.String(),
pieceVersion: typebox_1.Type.String(),
archiveId: typebox_1.Type.String(),
});
exports.PublicPiecePackage = typebox_1.Type.Object({
packageType: typebox_1.Type.Literal(PackageType.REGISTRY),
pieceType: typebox_1.Type.Enum(PieceType),
pieceName: typebox_1.Type.String(),
pieceVersion: typebox_1.Type.String(),
});
var PieceCategory;

@@ -16,0 +30,0 @@ (function (PieceCategory) {

@@ -1,4 +0,4 @@

import { PackageType } from './piece';
import { PiecePackage } from './piece';
export declare const getPackageAliasForPiece: (params: GetPackageAliasForPieceParams) => string;
export declare const getPackageSpecForPiece: (params: GetPackageSpecForPieceParams) => string;
export declare const getPackageSpecForPiece: (packageArchivePath: string, params: PiecePackage) => string;
export declare const getPackageArchivePathForPiece: (params: GetPackageArchivePathForPieceParams) => string;

@@ -10,12 +10,5 @@ export declare const extractPieceFromModule: <T>(params: ExtractPieceFromModuleParams) => T;

};
type GetPackageSpecForPieceParams = {
packageType: PackageType;
pieceName: string;
pieceVersion: string;
packageArchivePath: string;
};
type GetPackageArchivePathForPieceParams = {
pieceName: string;
pieceVersion: string;
packageArchivePath: string;
archiveId: string;
archivePath: string;
};

@@ -22,0 +15,0 @@ type ExtractPieceFromModuleParams = {

@@ -11,4 +11,4 @@ "use strict";

exports.getPackageAliasForPiece = getPackageAliasForPiece;
const getPackageSpecForPiece = (params) => {
const { packageType, pieceName, pieceVersion, packageArchivePath } = params;
const getPackageSpecForPiece = (packageArchivePath, params) => {
const { packageType, pieceName, pieceVersion } = params;
switch (packageType) {

@@ -20,5 +20,4 @@ case piece_1.PackageType.REGISTRY: {

const archivePath = (0, exports.getPackageArchivePathForPiece)({
pieceName,
pieceVersion,
packageArchivePath,
archiveId: params.archiveId,
archivePath: packageArchivePath,
});

@@ -31,4 +30,3 @@ return `file:${archivePath}`;

const getPackageArchivePathForPiece = (params) => {
const { pieceName, pieceVersion, packageArchivePath } = params;
return `${packageArchivePath}/${pieceName}/${pieceVersion}.tgz`;
return `${params.archivePath}/${params.archiveId}.tgz`;
};

@@ -35,0 +33,0 @@ exports.getPackageArchivePathForPiece = getPackageArchivePathForPiece;

import { Static } from '@sinclair/typebox';
export declare const UserResponse: import("@sinclair/typebox").TObject<{
email: import("@sinclair/typebox").TString<string>;
platformId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TNull]>;
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
status: import("@sinclair/typebox").TEnum<typeof import("./user").UserStatus>;
id: import("@sinclair/typebox").TString<string>;
created: import("@sinclair/typebox").TString<string>;
updated: import("@sinclair/typebox").TString<string>;
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
status: import("@sinclair/typebox").TEnum<typeof import("./user").UserStatus>;
platformId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TNull]>;
externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;

@@ -11,0 +11,0 @@ firstName: import("@sinclair/typebox").TString<string>;

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