@lwrjs/shared-utils
Advanced tools
Comparing version 0.0.2-alpha10 to 0.0.2-alpha11
@@ -251,7 +251,7 @@ "use strict"; | ||
* | ||
* @param viewId | ||
* @param source - Filepath with the source | ||
* @param viewFolder - File in the fs which holds the view | ||
*/ | ||
function getViewSourceFromFile({ sourcePath }, viewFolder) { | ||
const sourceFilePath = path_1.default.join(viewFolder, sourcePath); | ||
function getViewSourceFromFile(source, viewFolder) { | ||
const sourceFilePath = path_1.default.join(viewFolder, source); | ||
const viewSource = readFile(sourceFilePath); | ||
@@ -258,0 +258,0 @@ const ext = path_1.default.extname(sourceFilePath); |
@@ -229,7 +229,7 @@ import fs from 'fs'; | ||
* | ||
* @param viewId | ||
* @param source - Filepath with the source | ||
* @param viewFolder - File in the fs which holds the view | ||
*/ | ||
export function getViewSourceFromFile({ sourcePath }, viewFolder) { | ||
const sourceFilePath = path.join(viewFolder, sourcePath); | ||
export function getViewSourceFromFile(source, viewFolder) { | ||
const sourceFilePath = path.join(viewFolder, source); | ||
const viewSource = readFile(sourceFilePath); | ||
@@ -236,0 +236,0 @@ const ext = path.extname(sourceFilePath); |
/// <reference types="node" /> | ||
import { ApplicationMode, ModeConfig, ModuleDefinition, ModuleEntry, ModuleJsonDefinition, ModuleRegistry, RuntimeContext, ViewIdentity, ViewSource, VirtualModuleEntry } from '@lwrjs/types'; | ||
import { ApplicationMode, ModeConfig, ModuleDefinition, ModuleEntry, ModuleJsonDefinition, ModuleRegistry, RuntimeContext, ViewSource, VirtualModuleEntry } from '@lwrjs/types'; | ||
interface SpecifierConfig { | ||
@@ -77,7 +77,7 @@ name: string; | ||
* | ||
* @param viewId | ||
* @param source - Filepath with the source | ||
* @param viewFolder - File in the fs which holds the view | ||
*/ | ||
export declare function getViewSourceFromFile({ sourcePath }: ViewIdentity, viewFolder: string): ViewSource; | ||
export declare function getViewSourceFromFile(source: string, viewFolder: string): ViewSource; | ||
export {}; | ||
//# sourceMappingURL=utils.d.ts.map |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.0.2-alpha10", | ||
"version": "0.0.2-alpha11", | ||
"homepage": "https://lwr.dev/", | ||
@@ -43,3 +43,3 @@ "repository": { | ||
}, | ||
"gitHead": "cb54d75e833b0ecb269a74ae40da0337a18846c1" | ||
"gitHead": "3d6a69e6e61a5614b77dcb6e016cc2cd24fa079b" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
49234
0