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

@lwrjs/shared-utils

Package Overview
Dependencies
Maintainers
7
Versions
485
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwrjs/shared-utils - npm Package Compare versions

Comparing version 0.0.2-alpha10 to 0.0.2-alpha11

6

build/commonjs/utils.js

@@ -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"
}
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