You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@itemconsulting/preset-enonic-xp

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@itemconsulting/preset-enonic-xp - npm Package Compare versions

Comparing version

to
0.0.4

2

dist/freemarker-loader.js

@@ -8,3 +8,3 @@ import { getHashDigest } from "loader-utils";

.join("\n");
return `${requires}\nexport default "${getPathRelativeToResources(this.resourcePath)}"; /* hash=${getHashDigest(source)} */`;
return `${requires}\nexport default "${escapePathForWindows(getPathRelativeToResources(this.resourcePath))}"; /* hash=${getHashDigest(source)} */`;
}

@@ -11,0 +11,0 @@ function escapePathForWindows(path) {

import type { Configuration as WebpackConfig } from "webpack";
export declare function webpackFinal(config: WebpackConfig, options?: {}): WebpackConfig;
export declare function webpackFinal(config: WebpackConfig): WebpackConfig;
import { logger } from "@storybook/node-logger";
import { resolve } from "path";
export function webpackFinal(config, options = {}) {
export function webpackFinal(config) {
if (config.module) {
logger.info("=> Enabling Freemarker Loader");
logger.info("=> Enabling Thymeleaf Loader");
config.module.rules = [

@@ -7,0 +8,0 @@ ...(config.module?.rules || []),

@@ -8,3 +8,3 @@ import { getHashDigest } from "loader-utils";

.join("\n");
return `${requires}\nexport default "${getPathRelativeToResources(this.resourcePath)}"; /* hash=${getHashDigest(source)} */`;
return `${requires}\nexport default "${escapePathForWindows(getPathRelativeToResources(this.resourcePath))}"; /* hash=${getHashDigest(source)} */`;
}

@@ -11,0 +11,0 @@ function escapePathForWindows(path) {

{
"name": "@itemconsulting/preset-enonic-xp",
"version": "0.0.3",
"version": "0.0.4",
"description": "Preset for using Storybook with Enonic XP",

@@ -10,2 +10,3 @@ "main": "dist/index.js",

"build": "tsc -p .",
"lint": "eslint --cache 'src/**/*.ts'",
"prepublishOnly": "npm run build"

@@ -20,15 +21,14 @@ },

"dependencies": {
"@storybook/node-logger": "^7",
"loader-utils": "^3.2.1"
"@storybook/node-logger": "^8",
"loader-utils": "^3.3.1"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.56.0",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.5",
"typescript": "^5.3.3",
"webpack": "^5.90.1"
"eslint-plugin-prettier": "^5.2.1",
"prettier": "^3.3.3",
"typescript": "^5.6.2",
"typescript-eslint": "^8.5.0",
"webpack": "^5.94.0"
}
}