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

datauri

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datauri - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

api.js

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

getCSS() {
let config = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

@@ -109,0 +109,0 @@ if (!this.content) {

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

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Api).call(this));
var _this = _possibleConstructorReturn(this, (Api.__proto__ || Object.getPrototypeOf(Api)).call(this));

@@ -71,5 +71,5 @@ _this.readable = true;

this.mimetype = (0, _mimer2.default)(fileName);
var mimetype = this.mimetype;
var _base = this.base64;
var base64 = _base === undefined ? '' : _base;
var mimetype = this.mimetype,
_base = this.base64,
base64 = _base === undefined ? '' : _base;

@@ -139,3 +139,3 @@ this.content = (0, _uri2.default)({ mimetype: mimetype, base64: base64 });

value: function getCSS() {
var config = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

@@ -142,0 +142,0 @@ if (!this.content) {

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

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(DataURI).call(this));
var _this = _possibleConstructorReturn(this, (DataURI.__proto__ || Object.getPrototypeOf(DataURI)).call(this));

@@ -55,7 +55,5 @@ for (var _len = arguments.length, config = Array(_len), _key = 0; _key < _len; _key++) {

value: function sync(fileName) {
var _ref = new DataURI(fileName);
var _ref = new DataURI(fileName),
content = _ref.content;
var content = _ref.content;
return content;

@@ -62,0 +60,0 @@ }

@@ -1,1 +0,1 @@

{"version":"1.0.4","repository":{"type":"git","url":"git://github.com/heldr/datauri.git"},"engines":{"node":">= 0.10"},"keywords":["datauri","data uri","data","uri","data-uri","optimization","uri","optimize","inline","png","jpg","woff","base64"],"author":"Helder Santana","license":"MIT","name":"datauri","dependencies":{"image-size":"^0.3.5","mimer":"^0.2.1","semver":"^5.0.3"},"description":"Create DataURI scheme easily"}
{"version":"1.0.5","maintainers":[{"name":"Helder Santana","email":"heldr@me.com","url":"heldr.com"},{"name":"Ruy Adorno","url":"http://ruyadorno.com"},{"name":"Caio Gondim","email":"me@caiogondim.com","url":"https://caiogondim.com"}],"repository":{"type":"git","url":"git://github.com/data-uri/datauri.git"},"engines":{"node":">= 0.10"},"keywords":["datauri","data uri","data","uri","data-uri","optimization","uri","optimize","inline","png","jpg","woff","base64"],"author":"Helder Santana","license":"MIT","name":"datauri","dependencies":{"image-size":"^0.3.5","mimer":"^0.2.1","semver":"^5.0.3"},"description":"Create DataURI scheme easily"}
<h1 align="center">
<br>
<img width="365" src="https://cdn.rawgit.com/heldr/datauri/master/media/datauri.svg" alt="datauri">
<img width="365" src="https://cdn.rawgit.com/data-uri/datauri/master/media/datauri.svg" alt="datauri">
<br>

@@ -9,3 +9,3 @@ <br>

Node.js [Module](#module) and [Client](http://npm.im/datauri-cli) to generate [Data URI scheme](http://en.wikipedia.org/wiki/Data_URI_scheme).
Node.js [Module](#module) and [CLI](http://npm.im/datauri-cli) to generate [Data URI scheme](http://en.wikipedia.org/wiki/Data_URI_scheme).

@@ -16,3 +16,3 @@ > The data URI scheme is a uniform resource identifier (URI) scheme that provides a way to include data in-line in web pages as if they were external resources.

[![Build Status](https://travis-ci.org/heldr/grunt-smushit.svg?branch=master)](http://travis-ci.org/heldr/datauri) [![Coverage Status](https://coveralls.io/repos/heldr/datauri/badge.svg?branch=master&service=github)](https://coveralls.io/github/heldr/datauri?branch=master) [![Dependency Status](https://www.versioneye.com/user/projects/560b7b3f5a262f001e0007e2/badge.svg?style=flat)](https://www.versioneye.com/user/projects/560b7b3f5a262f001e0007e2) [![NPM version](http://img.shields.io/npm/dm/datauri.svg?style=flat)](https://www.npmjs.org/package/datauri)
[![Build Status](https://travis-ci.org/data-uri/datauri.svg?branch=master)](http://travis-ci.org/data-uri/datauri) [![Coverage Status](https://coveralls.io/repos/data-uri/datauri/badge.svg?branch=master&service=github)](https://coveralls.io/github/data-uri/datauri?branch=master) [![Dependency Status](https://www.versioneye.com/user/projects/560b7b3f5a262f001e0007e2/badge.svg?style=flat)](https://www.versioneye.com/user/projects/560b7b3f5a262f001e0007e2) [![NPM version](http://img.shields.io/npm/dm/datauri.svg?style=flat)](https://www.npmjs.org/package/datauri)

@@ -40,4 +40,4 @@ MODULE

7. [License](#license)
8. [ChangeLog](https://github.com/heldr/datauri/releases)
9. [Tools using datauri](https://github.com/heldr/datauri/blob/master/README.md#tools-using-datauri)
8. [ChangeLog](https://github.com/data-uri/datauri/releases)
9. [Tools using datauri](https://github.com/data-uri/datauri/blob/master/README.md#tools-using-datauri)

@@ -194,3 +194,2 @@ ### Readable Stream

$ npm install
$ npm run check
```

@@ -201,14 +200,8 @@

```CLI
$ npm run spec
$ npm test
```
If you'd like to test the full process including npm installer, just run:
```CLI
$ npm run fulltest
```
## License
MIT License
(c) [Helder Santana](http://heldr.com)
(c) [Data-URI.js](http://github.com/data-uri)
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