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

@phero/dev

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phero/dev - npm Package Compare versions

Comparing version

to
0.11.0-alpha.0

10

dist/cli/commands.d.ts
export declare const DEFAULT_SERVER_PORT = 3030;
export declare const DEFAULT_SERVER_URL: string;
export declare const DEFAULT_SERVER_URL = "http://localhost:3030";
export declare const DEFAULT_CLIENT_PORT = 4040;

@@ -37,3 +37,3 @@ export declare enum ServerCommandName {

}
export declare type ServerCommand = ServerCommandVersion | ServerCommandHelp | ServerCommandServe | ServerCommandExport | ServerCommandBuild;
export type ServerCommand = ServerCommandVersion | ServerCommandHelp | ServerCommandServe | ServerCommandExport | ServerCommandBuild;
export declare enum ClientCommandName {

@@ -58,3 +58,3 @@ Version = "version",

}
export declare type ClientServerLocation = ClientServerLocationUrl | ClientServerLocationPath;
export type ClientServerLocation = ClientServerLocationUrl | ClientServerLocationPath;
export interface ClientCommandWatch {

@@ -71,3 +71,3 @@ name: ClientCommandName.Watch;

}
export declare type ClientCommand = ClientCommandVersion | ClientCommandHelp | ClientCommandWatch | ClientCommandBuild;
export type ClientCommand = ClientCommandVersion | ClientCommandHelp | ClientCommandWatch | ClientCommandBuild;
export declare enum PheroCommandName {

@@ -104,3 +104,3 @@ Version = "version",

}
export declare type PheroCommand = PheroCommandVersion | PheroCommandHelp | PheroCommandServer | PheroCommandClient | PheroCommandDevEnv | PheroCommandInit;
export type PheroCommand = PheroCommandVersion | PheroCommandHelp | PheroCommandServer | PheroCommandClient | PheroCommandDevEnv | PheroCommandInit;
export declare function parseServerCommand(argv: string[]): ServerCommand;

@@ -107,0 +107,0 @@ export declare function parseClientCommand(argv: string[]): ClientCommand;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.parsePheroCommand = exports.parseClientCommand = exports.parseServerCommand = exports.PheroCommandName = exports.ClientCommandName = exports.ServerExportFlavor = exports.ServerCommandName = exports.DEFAULT_CLIENT_PORT = exports.DEFAULT_SERVER_URL = exports.DEFAULT_SERVER_PORT = void 0;
exports.PheroCommandName = exports.ClientCommandName = exports.ServerExportFlavor = exports.ServerCommandName = exports.DEFAULT_CLIENT_PORT = exports.DEFAULT_SERVER_URL = exports.DEFAULT_SERVER_PORT = void 0;
exports.parseServerCommand = parseServerCommand;
exports.parseClientCommand = parseClientCommand;
exports.parsePheroCommand = parsePheroCommand;
const arg_1 = __importDefault(require("arg"));

@@ -20,3 +23,3 @@ exports.DEFAULT_SERVER_PORT = 3030;

ServerCommandName["Build"] = "build";
})(ServerCommandName = exports.ServerCommandName || (exports.ServerCommandName = {}));
})(ServerCommandName || (exports.ServerCommandName = ServerCommandName = {}));
var ServerExportFlavor;

@@ -27,3 +30,3 @@ (function (ServerExportFlavor) {

ServerExportFlavor["Vercel"] = "vercel";
})(ServerExportFlavor = exports.ServerExportFlavor || (exports.ServerExportFlavor = {}));
})(ServerExportFlavor || (exports.ServerExportFlavor = ServerExportFlavor = {}));
// Client

@@ -36,3 +39,3 @@ var ClientCommandName;

ClientCommandName["Build"] = "build";
})(ClientCommandName = exports.ClientCommandName || (exports.ClientCommandName = {}));
})(ClientCommandName || (exports.ClientCommandName = ClientCommandName = {}));
// Phero

@@ -47,3 +50,3 @@ var PheroCommandName;

PheroCommandName["Init"] = "init";
})(PheroCommandName = exports.PheroCommandName || (exports.PheroCommandName = {}));
})(PheroCommandName || (exports.PheroCommandName = PheroCommandName = {}));
function parseServerCommand(argv) {

@@ -82,3 +85,2 @@ var _a;

}
exports.parseServerCommand = parseServerCommand;
function parseClientCommand(argv) {

@@ -130,3 +132,2 @@ var _a;

}
exports.parseClientCommand = parseClientCommand;
function parsePheroCommand(argv) {

@@ -172,3 +173,2 @@ const args = (0, arg_1.default)({

}
exports.parsePheroCommand = parsePheroCommand;
function parseServerExportFlavor(flavor) {

@@ -175,0 +175,0 @@ switch (flavor) {

@@ -72,7 +72,7 @@ "use strict";

});
test("cmd: 'phero-server export'", () => {
expect(run("phero-server export")).toMatchSnapshot();
test("cmd: 'phero-server export --flavor gcloud-functions'", () => {
expect(run("phero-server export --flavor gcloud-functions")).toMatchSnapshot();
});
test("cmd: 'phero-server export --verbose'", () => {
expect(run("phero-server export --verbose")).toMatchSnapshot();
test("cmd: 'phero-server export --flavor gcloud-functions --verbose'", () => {
expect(run("phero-server export --flavor gcloud-functions --verbose")).toMatchSnapshot();
});

@@ -79,0 +79,0 @@ });

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

/// <reference types="node" />
import http from "http";
declare type DevEventEmitterConnectionEvent = {
type DevEventEmitterConnectionEvent = {
type: "LISTENER_CONNECTED";

@@ -10,4 +9,4 @@ id: string;

};
export declare type ServerDevEventRPC = ServerDevEventRPCStart | ServerDevEventRPCSuccess | ServerDevEventRPCFailedValidationError | ServerDevEventRPCFailedFunctionError | ServerDevEventRPCFailedServerError | ServerDevEventRPCFailedNotFoundError;
export declare type ServerDevEventRPCStart = {
export type ServerDevEventRPC = ServerDevEventRPCStart | ServerDevEventRPCSuccess | ServerDevEventRPCFailedValidationError | ServerDevEventRPCFailedFunctionError | ServerDevEventRPCFailedServerError | ServerDevEventRPCFailedNotFoundError;
export type ServerDevEventRPCStart = {
type: "RPC_START";

@@ -18,3 +17,3 @@ url: string;

};
export declare type ServerDevEventRPCSuccess = {
export type ServerDevEventRPCSuccess = {
type: "RPC_SUCCESS";

@@ -39,3 +38,3 @@ url: string;

}
export declare type ServerDevEventRPCFailedValidationError = {
export type ServerDevEventRPCFailedValidationError = {
type: "RPC_FAILED_VALIDATION_ERROR";

@@ -49,3 +48,3 @@ url: string;

};
export declare type ServerDevEventRPCFailedFunctionError = {
export type ServerDevEventRPCFailedFunctionError = {
type: "RPC_FAILED_FUNCTION_ERROR";

@@ -58,3 +57,3 @@ url: string;

};
export declare type ServerDevEventRPCFailedServerError = {
export type ServerDevEventRPCFailedServerError = {
type: "RPC_FAILED_SERVER_ERROR";

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

};
export declare type ServerDevEventRPCFailedNotFoundError = {
export type ServerDevEventRPCFailedNotFoundError = {
type: "RPC_FAILED_NOT_FOUND_ERROR";

@@ -75,3 +74,3 @@ url: string;

};
export declare type ServerDevEvent = DevEventEmitterConnectionEvent | {
export type ServerDevEvent = DevEventEmitterConnectionEvent | {
type: "SERVE_INIT";

@@ -102,3 +101,3 @@ } | {

} | ServerDevEventRPCStart | ServerDevEventRPCSuccess | ServerDevEventRPCFailedValidationError | ServerDevEventRPCFailedFunctionError | ServerDevEventRPCFailedServerError | ServerDevEventRPCFailedNotFoundError;
export declare type ClientDevEvent = DevEventEmitterConnectionEvent | {
export type ClientDevEvent = DevEventEmitterConnectionEvent | {
type: "WATCH_INIT";

@@ -105,0 +104,0 @@ } | {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.addDevEventListener = exports.ClientDevEventEmitter = exports.ServerDevEventEmitter = void 0;
exports.ClientDevEventEmitter = exports.ServerDevEventEmitter = void 0;
exports.addDevEventListener = addDevEventListener;
const eventsource_1 = __importDefault(require("eventsource"));

@@ -74,2 +75,1 @@ const SSE_RESPONSE_HEADER = {

}
exports.addDevEventListener = addDevEventListener;
{
"name": "@phero/dev",
"version": "0.10.5",
"version": "0.11.0-alpha.0",
"main": "dist/index.js",

@@ -32,3 +32,3 @@ "homepage": "https://phero.dev",

"ts-jest": "^27.0.7",
"typescript": "^4.8.4"
"typescript": "^5.5.2"
},

@@ -41,3 +41,3 @@ "license": "Apache-2.0",

},
"gitHead": "a05c7a855dc3a8eebbc11dff3a3b9161afdb93e7"
"gitHead": "ac26f87f7411c66509ad9566aa4c9124e3692432"
}

@@ -95,8 +95,12 @@ import {

test("cmd: 'phero-server export'", () => {
expect(run("phero-server export")).toMatchSnapshot()
test("cmd: 'phero-server export --flavor gcloud-functions'", () => {
expect(
run("phero-server export --flavor gcloud-functions"),
).toMatchSnapshot()
})
test("cmd: 'phero-server export --verbose'", () => {
expect(run("phero-server export --verbose")).toMatchSnapshot()
test("cmd: 'phero-server export --flavor gcloud-functions --verbose'", () => {
expect(
run("phero-server export --flavor gcloud-functions --verbose"),
).toMatchSnapshot()
})

@@ -103,0 +107,0 @@ })

Sorry, the diff of this file is not supported yet