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

@marp-team/marpit

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marp-team/marpit - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

11

CHANGELOG.md

@@ -5,2 +5,13 @@ # Change Log

## v0.3.3 - 2018-11-30
### Fixed
- Revert resolutions for `ajv` ([#102](https://github.com/marp-team/marpit/pull/102))
- Fix over-scoped selectors injected by printable plugin ([#104](https://github.com/marp-team/marpit/pull/104))
### Added
- Run `yarn audit` while running CI / publish processes ([#103](https://github.com/marp-team/marpit/pull/103))
## v0.3.2 - 2018-11-29

@@ -7,0 +18,0 @@

31

lib/postcss/printable.js

@@ -6,3 +6,3 @@ "use strict";

});
exports.default = void 0;
exports.default = exports.postprocess = void 0;

@@ -25,3 +25,7 @@ var _postcss = _interopRequireDefault(require("postcss"));

*/
const plugin = _postcss.default.plugin('marpit-postcss-printable', opts => css => css.first.before(`
const plugin = _postcss.default.plugin('marpit-postcss-printable', opts => css => {
css.walkAtRules('media', rule => {
if (rule.params === 'marpit-print') rule.remove();
});
css.first.before(`
@page {

@@ -32,8 +36,3 @@ size: ${opts.width} ${opts.height};

@media print {
html, body {
margin: 0;
page-break-inside: avoid;
}
@media marpit-print {
section {

@@ -54,5 +53,19 @@ page-break-before: always;

}
`.trim()));
`.trim());
});
/**
* The post-process PostCSS plugin of Marpit printable plugin.
*
* @alias module:postcss/printable.postprocess
*/
const postprocess = _postcss.default.plugin('marpit-postcss-printable-postprocess', () => css => css.walkAtRules('media', rule => {
if (rule.params !== 'marpit-print') return;
rule.params = 'print';
rule.first.before('html, body { margin: 0; page-break-inside: avoid; }');
}));
exports.postprocess = postprocess;
var _default = plugin;
exports.default = _default;

@@ -20,3 +20,3 @@ "use strict";

var _printable = _interopRequireDefault(require("./postcss/printable"));
var _printable = _interopRequireWildcard(require("./postcss/printable"));

@@ -31,2 +31,4 @@ var _prepend = _interopRequireDefault(require("./postcss/pseudo_selector/prepend"));

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -218,3 +220,3 @@

height: this.getThemeProp(theme, 'height')
}), theme !== _scaffold.default && (css => css.first.before(_scaffold.default.css)), opts.inlineSVG && _advanced_background.default, _pagination.default, _prepend.default, (0, _replace2.default)(opts.containers, slideElements), _rollup.default].filter(p => p));
}), theme !== _scaffold.default && (css => css.first.before(_scaffold.default.css)), opts.inlineSVG && _advanced_background.default, _pagination.default, _prepend.default, (0, _replace2.default)(opts.containers, slideElements), opts.printable && _printable.postprocess, _rollup.default].filter(p => p));
return packer.process(theme.css).css;

@@ -221,0 +223,0 @@ }

{
"name": "@marp-team/marpit",
"version": "0.3.2",
"version": "0.3.3",
"description": "The skinny framework for creating slide deck from Markdown",

@@ -40,2 +40,3 @@ "license": "MIT",

"build": "yarn --mutex file run clean && babel src --out-dir lib",
"check-audit": "yarn --mutex file audit",
"clean": "rimraf lib",

@@ -51,4 +52,4 @@ "docs": "npm-run-all --npm-path yarn --parallel docsify docsify:style:watch",

"lint:css": "stylelint \"./**/*.{css,scss}\"",
"prepack": "npm-run-all --npm-path yarn --parallel format:check lint:* test:coverage --sequential build",
"preversion": "npm-run-all --npm-path yarn --parallel format:check lint:* test:coverage",
"prepack": "npm-run-all --npm-path yarn --parallel check-audit format:check lint:* test:coverage --sequential build",
"preversion": "npm-run-all --npm-path yarn --parallel check-audit format:check lint:* test:coverage",
"test": "jest",

@@ -102,6 +103,3 @@ "test:coverage": "jest --coverage",

"access": "public"
},
"resolutions": {
"ajv": "~6.5"
}
}
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