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

@canopycanopycanopy/b-ber-lib

Package Overview
Dependencies
Maintainers
2
Versions
333
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@canopycanopycanopy/b-ber-lib - npm Package Compare versions

Comparing version 0.1.0-alpha.b4d2b1f0 to 0.1.0-alpha.c43f205d

4

ApplicationLoader.js

@@ -312,3 +312,5 @@ 'use strict';

base_url: '/',
remote_url: '/',
remote_url: 'http://localhost:4000/',
reader_url: 'http://localhost:4000/project-reader',
builds: ['epub', 'mobi', 'pdf'],
private: false,

@@ -315,0 +317,0 @@ ignore: {},

@@ -25,6 +25,2 @@ 'use strict';

var _bBerLogger = require('@canopycanopycanopy/b-ber-logger');
var _bBerLogger2 = _interopRequireDefault(_bBerLogger);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -38,2 +34,3 @@

fileType: null, // any format supported by `ebook-convert`
fileName: new Date().toISOString().replace(/:/g, '-'),
flags: []

@@ -77,4 +74,3 @@ };

var settings = (0, _extends3.default)({}, defaults, options);
var modified = new Date().toISOString().replace(/:/g, '-');
var bookName = modified + '.' + settings.fileType.replace(/^\./, '');
var bookName = settings.fileName + '.' + settings.fileType.replace(/^\./, '');

@@ -81,0 +77,0 @@ settings.bookPath = '"' + _path2.default.resolve(settings.outputPath, bookName) + '"';

{
"name": "@canopycanopycanopy/b-ber-lib",
"version": "0.1.0-alpha.b4d2b1f0",
"version": "0.1.0-alpha.c43f205d",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -95,5 +95,5 @@ 'use strict';

return themeList.reduce(function (acc, curr) {
var icon = currentTheme && currentTheme === curr ? '✔' : '-';
var icon = currentTheme && currentTheme === curr ? '✓' : '○';
return acc.concat(' ' + icon + ' ' + curr + '\n');
}, '\n');
}, '\n').slice(0, -1);
};

@@ -100,0 +100,0 @@

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

});
exports.trimSlashes = exports.encodeQueryString = exports.ensureDecoded = exports.getTitleOrName = exports.parseHTMLFiles = exports.getPagebreakAttribute = exports.flattenSpineFromYAML = exports.nestedContentToYAML = exports.modelFromString = exports.modelFromObject = exports.spineModel = exports.escapeHTML = exports.passThrough = exports.htmlComment = exports.promiseAll = exports.forOf = exports.getImageOrientation = exports.hrtimeformat = exports.fileId = exports.opsPath = undefined;
exports.getBookMetadata = exports.trimSlashes = exports.encodeQueryString = exports.ensureDecoded = exports.getTitleOrName = exports.parseHTMLFiles = exports.getPagebreakAttribute = exports.flattenSpineFromYAML = exports.nestedContentToYAML = exports.modelFromString = exports.modelFromObject = exports.spineModel = exports.escapeHTML = exports.passThrough = exports.htmlComment = exports.promiseAll = exports.forOf = exports.getImageOrientation = exports.hrtimeformat = exports.fileId = exports.opsPath = undefined;

@@ -49,4 +49,2 @@ var _defineProperty2 = require('babel-runtime/helpers/defineProperty');

// import state from '../State'
/**

@@ -125,35 +123,2 @@ * @module utils

* [description]
* @return {String}
*/
// const src = () => {
// if (!state.buildTypes[state.build] || !state.buildTypes[state.build].src) {
// state.update('build', 'epub')
// }
// return path.join(cwd, state.buildTypes[state.build].src)
// }
/**
* [description]
* @return {String}
*/
// const dist = () => {
// if (!state.buildTypes[state.build] || !state.buildTypes[state.build].dist) {
// state.update('build', 'epub')
// }
// return path.join(cwd, state.buildTypes[state.build].dist)
// }
// const build = () => state.build
// const env = () => state.config.env
// const version = () => state.version
// const theme = () => state.theme
// const metadata = () => state.metadata
/**
* [description]
* @param {Array<Object<Promise>>} promiseArray [description]

@@ -372,2 +337,9 @@ * @return {Object<Promise|Error>}

var getBookMetadata = function getBookMetadata(term, state) {
var entry = (0, _lodash.find)(state.metadata, { term: term });
if (entry && entry.value) return entry.value;
_bBerLogger2.default.warn('Could not find metadata value for ' + term);
return '';
};
exports.opsPath = opsPath;

@@ -392,2 +364,3 @@ exports.fileId = fileId;

exports.encodeQueryString = encodeQueryString;
exports.trimSlashes = trimSlashes;
exports.trimSlashes = trimSlashes;
exports.getBookMetadata = getBookMetadata;
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