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

canvas-native

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-native - npm Package Compare versions

Comparing version 2.4.2 to 2.4.3

2

dist/lib/types/code.js

@@ -48,3 +48,3 @@ 'use strict';

if (!prev || prev.type !== this.type) {
if (!prev || prev.type !== this.type || prev.language !== this.language) {
result = '```' + (this.language || '') + '\n' + result;

@@ -51,0 +51,0 @@ }

@@ -30,3 +30,5 @@ import Type from './type';

if (!prev || prev.type !== this.type) {
if (!prev ||
((prev.type !== this.type) ||
(prev.language !== this.language))) {
result = `\`\`\`${this.language || ''}\n${result}`;

@@ -33,0 +35,0 @@ }

{
"name": "canvas-native",
"description": "Utilities for working with the native Canvas format",
"version": "2.4.2",
"version": "2.4.3",
"author": "Jonathan Clem <jonathan@usecanvas.com>",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/usecanvas/canvas-native/issues",

@@ -61,2 +61,8 @@ import Code from '../../../lib/types/code';

it('prepends a fence when preceded by a different lang', () => {
const line2 = Code.match(wrap('code-ruby') + 'alert("ok");');
expect(line.toMarkdown(line2, line))
.to.eql('```\nalert("ok");');
});
it('prepends a fence at the beginning of a document', () => {

@@ -63,0 +69,0 @@ expect(line.toMarkdown(null, line))

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