Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-style-docs

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-style-docs - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

lib/cjs/index.d.ts

@@ -26,2 +26,3 @@ import { Message, Plugin } from 'postcss';

}
export declare function getDocsMessage(messages: Message[]): StyleDocsMessage;
/**

@@ -31,2 +32,1 @@ * A PostCSS plugin for generating style documentation from source code

export declare const styleDocsPlugin: (opts?: StyleDocsOptions) => Plugin;
export declare function getDocsMessage(messages: Message[]): StyleDocsMessage;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDocsMessage = exports.styleDocsPlugin = exports.pluginName = void 0;
exports.styleDocsPlugin = exports.getDocsMessage = exports.pluginName = void 0;
/** Clean comments text */

@@ -24,2 +24,6 @@ function cleanComment(text, commentString, cleanWhitespace) {

};
function getDocsMessage(messages) {
return messages.find(message => message.plugin === exports.pluginName);
}
exports.getDocsMessage = getDocsMessage;
/**

@@ -87,5 +91,1 @@ * A PostCSS plugin for generating style documentation from source code

exports.styleDocsPlugin = styleDocsPlugin;
function getDocsMessage(messages) {
return messages.find(message => message.plugin === exports.pluginName);
}
exports.getDocsMessage = getDocsMessage;

@@ -26,2 +26,3 @@ import { Message, Plugin } from 'postcss';

}
export declare function getDocsMessage(messages: Message[]): StyleDocsMessage;
/**

@@ -31,2 +32,1 @@ * A PostCSS plugin for generating style documentation from source code

export declare const styleDocsPlugin: (opts?: StyleDocsOptions) => Plugin;
export declare function getDocsMessage(messages: Message[]): StyleDocsMessage;

@@ -21,2 +21,5 @@ /** Clean comments text */

};
export function getDocsMessage(messages) {
return messages.find(message => message.plugin === pluginName);
}
/**

@@ -83,4 +86,1 @@ * A PostCSS plugin for generating style documentation from source code

};
export function getDocsMessage(messages) {
return messages.find(message => message.plugin === pluginName);
}
{
"name": "postcss-style-docs",
"version": "0.0.2",
"version": "0.0.3",
"description": "PostCSS plugin for dynamically adding documentation to styles",

@@ -21,10 +21,7 @@ "keywords": [

},
"main": "lib/cjs/index.js",
"module": "lib/mjs/index.js",
"type": "module",
"main": "./lib/cjs/index.js",
"module": "./lib/mjs/index.js",
"exports": {
".": {
"import": "./lib/mjs/index.js",
"require": "./lib/cjs/index.js"
}
"import": "./lib/cjs/index.js",
"require": "./lib/cjs/index.js"
},

@@ -31,0 +28,0 @@ "files": [

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