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.3.2 to 2.3.3

8

dist/lib/types/image.js

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

get: function get() {
return this.meta.url;
return this.meta.url || '';
}

@@ -77,3 +77,7 @@ }, {

get: function get() {
return JSON.parse(this.match[2]);
try {
return JSON.parse(this.match[2]);
} catch (e) {
return {};
}
}

@@ -80,0 +84,0 @@ }], [{

@@ -6,7 +6,12 @@ import Type from './type';

get content() {
return this.meta.url;
return this.meta.url || '';
}
get meta() {
return JSON.parse(this.match[2]);
try {
return JSON.parse(this.match[2]);
}
catch(e) {
return {};
}
}

@@ -13,0 +18,0 @@

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

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

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