From 4cf6d459e687a54476d1da6792b7b338618cd6ab Mon Sep 17 00:00:00 2001 From: "dr.dimitru" Date: Fri, 27 Jul 2018 03:16:18 +0300 Subject: [PATCH] v2.0.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 🗑 Get rid of `underscore` package - 📦 Update NPM and Atmosphere dependencies - 🤝 Compatibility with `meteor@1.7.0.3` --- .versions | 74 ++++++++++++++++++++++++++---------------------- loggerconsole.js | 7 +++++ package.js | 6 ++-- 3 files changed, 50 insertions(+), 37 deletions(-) diff --git a/.versions b/.versions index 4ac4d4f..a670bb6 100644 --- a/.versions +++ b/.versions @@ -1,43 +1,49 @@ allow-deny@1.1.0 -babel-compiler@6.24.7 -babel-runtime@1.1.1 -base64@1.0.10 +babel-compiler@7.1.1 +babel-runtime@1.2.2 +base64@1.0.11 binary-heap@1.0.10 -boilerplate-generator@1.3.0 -callback-hook@1.0.10 -check@1.2.5 +boilerplate-generator@1.5.0 +callback-hook@1.1.0 +check@1.3.1 ddp@1.4.0 -ddp-client@2.2.0 -ddp-common@1.3.0 -ddp-server@2.1.0 -diff-sequence@1.0.7 -ecmascript@0.9.0 -ecmascript-runtime@0.5.0 -ecmascript-runtime-client@0.5.0 -ecmascript-runtime-server@0.5.0 +ddp-client@2.3.2 +ddp-common@1.4.0 +ddp-server@2.2.0 +diff-sequence@1.1.0 +dynamic-import@0.4.1 +ecmascript@0.11.1 +ecmascript-runtime@0.7.0 +ecmascript-runtime-client@0.7.1 +ecmascript-runtime-server@0.7.0 ejson@1.1.0 geojson-utils@1.0.10 -id-map@1.0.9 -local-test:ostrio:loggerconsole@2.0.3 -logging@1.1.19 -meteor@1.8.0 -minimongo@1.4.0 -modules@0.11.0 -modules-runtime@0.9.0 -mongo@1.3.0 +http@1.4.1 +id-map@1.1.0 +local-test:ostrio:loggerconsole@2.0.4 +logging@1.1.20 +meteor@1.9.0 +minimongo@1.4.4 +modern-browsers@0.1.2 +modules@0.12.0 +modules-runtime@0.10.0 +mongo@1.5.0 mongo-dev-server@1.1.0 -mongo-id@1.0.6 -npm-mongo@2.2.33 -ordered-dict@1.0.9 -ostrio:logger@2.0.5 -ostrio:loggerconsole@2.0.3 -promise@0.10.0 -random@1.0.10 +mongo-id@1.0.7 +npm-mongo@3.0.11 +ordered-dict@1.1.0 +ostrio:logger@2.0.7 +ostrio:loggerconsole@2.0.4 +promise@0.11.1 +random@1.1.0 reactive-var@1.0.11 -retry@1.0.9 -routepolicy@1.0.12 -tinytest@1.0.12 -tracker@1.1.3 +reload@1.2.0 +retry@1.1.0 +routepolicy@1.0.13 +socket-stream-client@0.2.2 +tinytest@1.1.0 +tracker@1.2.0 underscore@1.0.10 -webapp@1.4.0 +url@1.2.0 +webapp@1.6.0 webapp-hashing@1.0.9 diff --git a/loggerconsole.js b/loggerconsole.js index effbafa..d8e10ab 100755 --- a/loggerconsole.js +++ b/loggerconsole.js @@ -29,6 +29,13 @@ const helpers = { } }; +const _helpers = ['String', 'Date']; +for (let i = 0; i < _helpers.length; i++) { + helpers['is' + _helpers[i]] = function (obj) { + return Object.prototype.toString.call(obj) === '[object ' + _helpers[i] + ']'; + }; +} + /* * @class LoggerConsole * @summary Colorful console adapter for ostrio:logger (Logger) diff --git a/package.js b/package.js index 8a7ee86..e8bfabc 100755 --- a/package.js +++ b/package.js @@ -1,6 +1,6 @@ Package.describe({ name: 'ostrio:loggerconsole', - version: '2.0.3', + version: '2.0.4', summary: 'Logging: Print Client\'s logs to Server\'s console, messages colorized for better readability', git: 'https://github.com/VeliovGroup/Meteor-logger-console', documentation: 'README.md' @@ -8,12 +8,12 @@ Package.describe({ Package.onUse(function(api) { api.versionsFrom('1.4'); - api.use(['ecmascript', 'check', 'underscore', 'ostrio:logger@2.0.5'], ['client', 'server']); + api.use(['ecmascript', 'check', 'ostrio:logger@2.0.7'], ['client', 'server']); api.mainModule('loggerconsole.js', ['client', 'server']); }); Package.onTest(function(api) { api.use('tinytest'); - api.use(['ecmascript', 'underscore', 'ostrio:logger@2.0.5', 'ostrio:loggerconsole@2.0.3']); + api.use(['ecmascript', 'underscore', 'ostrio:logger', 'ostrio:loggerconsole']); api.addFiles('loggerconsole-tests.js'); });