@cara/porter
Advanced tools
Comparing version 4.5.0 to 4.5.1
{ | ||
"name": "@cara/porter", | ||
"description": "A middleware for web modules", | ||
"version": "4.5.0", | ||
"version": "4.5.1", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "types": "index.d.ts", |
@@ -92,3 +92,3 @@ "use strict"; | ||
// @ts-ignore | ||
this.packet = opts.package | ||
this.packet = opts.package && opts.lock | ||
? new fake_packet_1.default({ ...packetOptions, lock: opts.lock }) | ||
@@ -95,0 +95,0 @@ : new packet_1.default(packetOptions); |
@@ -54,4 +54,4 @@ /// <reference types="node" /> | ||
baseUrl?: string; | ||
lock: Record<string, any>; | ||
package: PacketMeta; | ||
lock?: Record<string, any>; | ||
package?: PacketMeta; | ||
} | ||
@@ -58,0 +58,0 @@ declare class Porter { |
Sorry, the diff of this file is not supported yet
312109