Skip to content

Commit

Permalink
⬆️ @2.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
kobezzza committed Sep 5, 2015
1 parent 5ff9fe2 commit e72f252
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 17 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -203,6 +203,7 @@ monic.compile(
{
replacers: [
// Replaces require to #include
// ("this" refers to the instance of the compiler)
function (text, file) {
return text.replace(/^\s*require\('(.*?)'\);/gm, '//#include $1');
}
Expand Down
1 change: 1 addition & 0 deletions README.ru.md
Expand Up @@ -204,6 +204,7 @@ monic.compile(
{
replacers: [
// Замена require конструкций на #include
// (this ссылается на экземпляр сборщика)
function (text, file) {
return text.replace(/^\s*require\('(.*?)'\);/gm, '//#include $1');
}
Expand Down
4 changes: 2 additions & 2 deletions dist/file.js
@@ -1,11 +1,11 @@
/*!
* Monic v2.3.3
* Monic v2.3.4
* https://github.com/MonicBuilder/Monic
*
* Released under the MIT license
* https://github.com/MonicBuilder/Monic/blob/master/LICENSE
*
* Date: Sun, 23 Aug 2015 13:08:15 GMT
* Date: Sat, 05 Sep 2015 13:08:56 GMT
*/

'use strict';
Expand Down
10 changes: 3 additions & 7 deletions dist/parser.js
@@ -1,11 +1,11 @@
/*!
* Monic v2.3.3
* Monic v2.3.4
* https://github.com/MonicBuilder/Monic
*
* Released under the MIT license
* https://github.com/MonicBuilder/Monic/blob/master/LICENSE
*
* Date: Sun, 23 Aug 2015 13:08:15 GMT
* Date: Sat, 05 Sep 2015 13:08:56 GMT
*/

'use strict';
Expand All @@ -31,10 +31,6 @@ var _glob = require('glob');

var _glob2 = _interopRequireDefault(_glob);

var _objectAssign = require('object-assign');

var _objectAssign2 = _interopRequireDefault(_objectAssign);

var _path = require('path');

var path = _interopRequireWildcard(_path);
Expand Down Expand Up @@ -79,7 +75,7 @@ var Parser = (function () {

this.eol = eol;
this.replacers = replacers;
this.flags = _objectAssign2['default']({}, flags);
this.flags = _collectionJs.$C.extend(false, {}, flags);
this.sourceMaps = sourceMaps;
this.inputSourceMap = inputSourceMap;
this.sourceRoot = sourceRoot;
Expand Down
10 changes: 6 additions & 4 deletions monic.js
Expand Up @@ -17,11 +17,13 @@ const
async = require('async'),
mkdirp = require('mkdirp'),
ok = require('okay'),
promisify = require('promisify-any'),
assign = require('object-assign');
promisify = require('promisify-any');

const
$C = require('collection.js').$C;

/** @type {!Array} */
exports.VERSION = [2, 3, 3];
exports.VERSION = [2, 3, 4];

/**
* Builds a file
Expand Down Expand Up @@ -54,7 +56,7 @@ exports.compile = function (file, opt_params, opt_callback) {

function compile(file, params, callback) {
file = url(file);
params = assign({
params = $C.extend(false, {
flags: {},
labels: {},
eol: '\n',
Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -3,7 +3,7 @@
"description": "File builder for JavaScript.",
"homepage": "https://github.com/MonicBuilder/Monic",
"main": "monic.js",
"version": "2.3.3",
"version": "2.3.4",
"license": "MIT",
"author": {
"name": "kobezzza",
Expand Down Expand Up @@ -43,7 +43,6 @@
"commander": "^2.5.0",
"glob": "^5.0.5",
"mkdirp": "^0.5.0",
"object-assign": "^4.0.1",
"okay": "^1.0.0",
"promisify-any": "^1.1.1",
"source-map": "^0.4.2",
Expand Down
3 changes: 1 addition & 2 deletions src/parser.js
Expand Up @@ -8,7 +8,6 @@

import ok from 'okay';
import glob from 'glob';
import assign from 'object-assign';

import * as path from 'path';
import * as fs from 'fs';
Expand All @@ -33,7 +32,7 @@ export default class Parser {
constructor({eol, replacers, flags, sourceMaps, sourceRoot, inputSourceMap}) {
this.eol = eol;
this.replacers = replacers;
this.flags = assign({}, flags);
this.flags = $C.extend(false, {}, flags);
this.sourceMaps = sourceMaps;
this.inputSourceMap = inputSourceMap;
this.sourceRoot = sourceRoot;
Expand Down

0 comments on commit e72f252

Please sign in to comment.