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

pwomp-util

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pwomp-util - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

lib/getLayout.js

8

lib/parseMetadata.js

@@ -1,2 +0,4 @@

module.exports = function(content) {
const getLayout = require('./getLayout');
module.exports = function(content, forceLayout) {
if (!content) return {};

@@ -13,3 +15,7 @@

if (forceLayout) {
data.layout = getLayout(data);
}
return data;
}

4

lib/parseView.js
const parseMetadata = require('./parseMetadata');
module.exports = function(view) {
view.data = parseMetadata(view.template.match(/^---[\s\S]*---/));
module.exports = function(view, forceLayout) {
view.data = parseMetadata(view.template.match(/^---[\s\S]*---/), forceLayout);
view.template = view.template.replace(/^---[\s\S]*---/, '').trim();

@@ -6,0 +6,0 @@

{
"name": "pwomp-util",
"version": "0.0.6",
"version": "0.0.7",
"description": "Utilities for Pwomp plugins",

@@ -5,0 +5,0 @@ "main": "index.js",

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