Socket
Socket
Sign inDemoInstall

@busy-hour/blaze

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@busy-hour/blaze - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## [3.0.1](https://github.com/Busy-Hour-Studio/blaze/compare/v3.0.0...v3.0.1) (2024-04-23)
### Bug Fixes
* node serve without port ([9b1d405](https://github.com/Busy-Hour-Studio/blaze/commit/9b1d4058f0551a4fbd32d23dd5a0855eeb0a75ac))
## [3.0.0](https://github.com/Busy-Hour-Studio/blaze/compare/v3.0.0-3...v3.0.0) (2024-04-23)

@@ -7,0 +14,0 @@

4

dist/cjs/config/BlazeDependency.js

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

if (process.versions.node)
return "node";
return "other";
return import_constant.PossibleRunTime.Node;
return import_constant.PossibleRunTime.Other;
}

@@ -42,0 +42,0 @@ loadNodeAdapter() {

@@ -122,5 +122,5 @@ "use strict";

serve(port, listener) {
const args = this.getServeConfig(port, listener);
if (!(0, import_common.isNil)(port)) {
const args = this.getServeConfig(port, listener);
if (import_config.BlazeDependency.runTime === "node" && this.adapter) {
if (import_config.BlazeDependency.runTime === import_constant.PossibleRunTime.Node && this.adapter) {
this.adapter.serve(...args);

@@ -133,2 +133,5 @@ }

}
if (import_config.BlazeDependency.runTime === import_constant.PossibleRunTime.Node && this.adapter) {
this.adapter.serve(...args);
}
return this.router.fetch;

@@ -135,0 +138,0 @@ }

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

FORM_CONTENT_TYPE: () => FORM_CONTENT_TYPE,
PossibleRunTime: () => PossibleRunTime,
RESERVED_KEYWORD: () => RESERVED_KEYWORD,

@@ -53,2 +54,7 @@ REST_CONTENT_TYPE: () => REST_CONTENT_TYPE

})(ExternalModule || {});
var PossibleRunTime = /* @__PURE__ */ ((PossibleRunTime2) => {
PossibleRunTime2["Node"] = "node";
PossibleRunTime2["Other"] = "other";
return PossibleRunTime2;
})(PossibleRunTime || {});
// Annotate the CommonJS export names for ESM import in node:

@@ -58,4 +64,5 @@ 0 && (module.exports = {

FORM_CONTENT_TYPE,
PossibleRunTime,
RESERVED_KEYWORD,
REST_CONTENT_TYPE
});
// src/config/BlazeDependency.ts
import { crossRequire } from "../utils/common.js";
import { ExternalModule } from "../utils/constant.js";
import { ExternalModule, PossibleRunTime } from "../utils/constant.js";
var BlazeDependency = class {

@@ -16,4 +16,4 @@ $runTime;

if (process.versions.node)
return "node";
return "other";
return PossibleRunTime.Node;
return PossibleRunTime.Other;
}

@@ -20,0 +20,0 @@ loadNodeAdapter() {

@@ -7,3 +7,3 @@ // src/router/Blaze.ts

import { isNil } from "../utils/common.js";
import { ExternalModule } from "../utils/constant.js";
import { ExternalModule, PossibleRunTime } from "../utils/constant.js";
import { BlazeService } from "../utils/setup/service.js";

@@ -91,5 +91,5 @@ import { BlazeRouter } from "./BlazeRouter.js";

serve(port, listener) {
const args = this.getServeConfig(port, listener);
if (!isNil(port)) {
const args = this.getServeConfig(port, listener);
if (BlazeDependency.runTime === "node" && this.adapter) {
if (BlazeDependency.runTime === PossibleRunTime.Node && this.adapter) {
this.adapter.serve(...args);

@@ -102,2 +102,5 @@ }

}
if (BlazeDependency.runTime === PossibleRunTime.Node && this.adapter) {
this.adapter.serve(...args);
}
return this.router.fetch;

@@ -104,0 +107,0 @@ }

@@ -27,7 +27,13 @@ // src/utils/constant.ts

})(ExternalModule || {});
var PossibleRunTime = /* @__PURE__ */ ((PossibleRunTime2) => {
PossibleRunTime2["Node"] = "node";
PossibleRunTime2["Other"] = "other";
return PossibleRunTime2;
})(PossibleRunTime || {});
export {
ExternalModule,
FORM_CONTENT_TYPE,
PossibleRunTime,
RESERVED_KEYWORD,
REST_CONTENT_TYPE
};
import { DependencyModule } from '../types/config';
import { PossibleRunTime } from '../utils/constant';
export declare class BlazeDependency {

@@ -9,3 +10,3 @@ private readonly $runTime;

private loadZodApi;
get runTime(): "node" | "other";
get runTime(): PossibleRunTime;
}

@@ -22,1 +22,5 @@ export declare const RESERVED_KEYWORD: {

}
export declare enum PossibleRunTime {
Node = "node",
Other = "other"
}

@@ -7,3 +7,3 @@ {

"type": "module",
"version": "3.0.0",
"version": "3.0.1",
"license": "MIT",

@@ -10,0 +10,0 @@ "devDependencies": {

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