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

aurelia-logging

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aurelia-logging - npm Package Compare versions

Comparing version 1.0.0-beta.1.1.2 to 1.0.0-beta.1.2.0

dist/es2015/aurelia-logging.d.ts

2

bower.json
{
"name": "aurelia-logging",
"version": "1.0.0-beta.1.1.2",
"version": "1.0.0-beta.1.2.0",
"description": "A minimal but effective logging mechanism with support for log levels and pluggable log appenders.",

@@ -5,0 +5,0 @@ "keywords": [

var path = require('path');
var paths = require('./paths');
module.exports = {
filename: '',
filenameRelative: '',
modules: '',
sourceMap: true,
sourceMapName: '',
sourceRoot: '',
moduleRoot: path.resolve('src').replace(/\\/g, '/'),
moduleIds: false,
experimental: false,
comments: false,
compact: false,
code:true,
stage:2,
loose: "all",
optional: [
"es7.decorators",
"es7.classProperties"
],
plugins: [
"babel-dts-generator"
],
extra: {
dts: {
packageName: paths.packageName,
typings: '',
suppressModulePath: true,
suppressComments: false,
memberOutputFilter: /^_.*/
}
}
exports.base = function() {
return {
filename: '',
filenameRelative: '',
sourceMap: true,
sourceRoot: '',
moduleRoot: path.resolve('src').replace(/\\/g, '/'),
moduleIds: false,
comments: false,
compact: false,
code:true,
presets: [ 'es2015-loose', 'stage-1'],
plugins: [
'syntax-flow',
'transform-decorators-legacy',
['babel-dts-generator', {
packageName: paths.packageName,
typings: '',
suppressModulePath: true,
suppressComments: false,
memberOutputFilter: /^_.*/
}],
'transform-flow-strip-types'
]
};
}
exports.commonjs = function() {
var options = exports.base();
options.plugins.push('transform-es2015-modules-commonjs');
return options;
};
exports.amd = function() {
var options = exports.base();
options.plugins.push('transform-es2015-modules-amd');
return options;
};
exports.system = function() {
var options = exports.base();
options.plugins.push('transform-es2015-modules-systemjs');
return options;
};
exports.es2015 = function() {
var options = exports.base();
options.presets = ['stage-1']
return options;
};

@@ -17,5 +17,6 @@ var gulp = require('gulp');

gulp.task('build-es6', function () {
gulp.task('build-es2015', function () {
return gulp.src(paths.output + jsName)
.pipe(gulp.dest(paths.output + 'es6'));
.pipe(to5(assign({}, compilerOptions.es2015())))
.pipe(gulp.dest(paths.output + 'es2015'));
});

@@ -25,3 +26,3 @@

return gulp.src(paths.output + jsName)
.pipe(to5(assign({}, compilerOptions, {modules:'common'})))
.pipe(to5(assign({}, compilerOptions.commonjs())))
.pipe(gulp.dest(paths.output + 'commonjs'));

@@ -32,3 +33,3 @@ });

return gulp.src(paths.output + jsName)
.pipe(to5(assign({}, compilerOptions, {modules:'amd'})))
.pipe(to5(assign({}, compilerOptions.amd())))
.pipe(gulp.dest(paths.output + 'amd'));

@@ -39,3 +40,3 @@ });

return gulp.src(paths.output + jsName)
.pipe(to5(assign({}, compilerOptions, {modules:'system'})))
.pipe(to5(assign({}, compilerOptions.system())))
.pipe(gulp.dest(paths.output + 'system'));

@@ -46,3 +47,4 @@ });

return gulp.src(paths.output + paths.packageName + '.d.ts')
.pipe(gulp.dest(paths.output + 'es6'))
.pipe(rename(paths.packageName + '.d.ts'))
.pipe(gulp.dest(paths.output + 'es2015'))
.pipe(gulp.dest(paths.output + 'commonjs'))

@@ -57,3 +59,3 @@ .pipe(gulp.dest(paths.output + 'amd'))

'build-index',
['build-es6', 'build-commonjs', 'build-amd', 'build-system'],
['build-es2015', 'build-commonjs', 'build-amd', 'build-system'],
'build-dts',

@@ -60,0 +62,0 @@ callback

@@ -75,2 +75,5 @@ declare module 'aurelia-logging' {

*/
/**
* Specifies the available logging levels.
*/
export const logLevel: LogLevel;

@@ -91,2 +94,7 @@

*/
/**
* Adds an appender capable of processing logs and channeling them to an output.
*
* @param appender An appender instance to begin processing logs with.
*/
export function addAppender(appender: Appender): void;

@@ -93,0 +101,0 @@

define(['exports'], function (exports) {
'use strict';
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getLogger = getLogger;

@@ -9,5 +11,9 @@ exports.addAppender = addAppender;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
var logLevel = {
var logLevel = exports.logLevel = {
none: 0,

@@ -20,3 +26,2 @@ error: 1,

exports.logLevel = logLevel;
var loggers = {};

@@ -30,3 +35,3 @@ var currentLevel = logLevel.none;

var i = appenders.length;
var current = undefined;
var current = void 0;

@@ -109,3 +114,3 @@ args = slice.call(args);

var Logger = (function () {
var Logger = exports.Logger = function () {
function Logger(id, key) {

@@ -130,5 +135,3 @@ _classCallCheck(this, Logger);

return Logger;
})();
exports.Logger = Logger;
}();
});

@@ -75,2 +75,5 @@ declare module 'aurelia-logging' {

*/
/**
* Specifies the available logging levels.
*/
export const logLevel: LogLevel;

@@ -91,2 +94,7 @@

*/
/**
* Adds an appender capable of processing logs and channeling them to an output.
*
* @param appender An appender instance to begin processing logs with.
*/
export function addAppender(appender: Appender): void;

@@ -93,0 +101,0 @@

@@ -75,2 +75,5 @@ declare module 'aurelia-logging' {

*/
/**
* Specifies the available logging levels.
*/
export const logLevel: LogLevel;

@@ -91,2 +94,7 @@

*/
/**
* Adds an appender capable of processing logs and channeling them to an output.
*
* @param appender An appender instance to begin processing logs with.
*/
export function addAppender(appender: Appender): void;

@@ -93,0 +101,0 @@

'use strict';
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getLogger = getLogger;

@@ -8,5 +10,5 @@ exports.addAppender = addAppender;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var logLevel = {
var logLevel = exports.logLevel = {
none: 0,

@@ -19,3 +21,2 @@ error: 1,

exports.logLevel = logLevel;
var loggers = {};

@@ -29,3 +30,3 @@ var currentLevel = logLevel.none;

var i = appenders.length;
var current = undefined;
var current = void 0;

@@ -108,3 +109,3 @@ args = slice.call(args);

var Logger = (function () {
var Logger = exports.Logger = function () {
function Logger(id, key) {

@@ -129,4 +130,2 @@ _classCallCheck(this, Logger);

return Logger;
})();
exports.Logger = Logger;
}();

@@ -75,2 +75,5 @@ declare module 'aurelia-logging' {

*/
/**
* Specifies the available logging levels.
*/
export const logLevel: LogLevel;

@@ -91,2 +94,7 @@

*/
/**
* Adds an appender capable of processing logs and channeling them to an output.
*
* @param appender An appender instance to begin processing logs with.
*/
export function addAppender(appender: Appender): void;

@@ -93,0 +101,0 @@

@@ -1,17 +0,15 @@

System.register([], function (_export) {
'use strict';
'use strict';
System.register([], function (_export, _context) {
var logLevel, loggers, currentLevel, appenders, slice, loggerConstructionKey, Logger;
_export('getLogger', getLogger);
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
_export('addAppender', addAppender);
_export('setLevel', setLevel);
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function log(logger, level, args) {
var i = appenders.length;
var current = undefined;
var current = void 0;

@@ -76,24 +74,6 @@ args = slice.call(args);

function getLogger(id) {
return loggers[id] || (loggers[id] = createLogger(id));
}
function addAppender(appender) {
appenders.push(appender);
if (appenders.length === 1) {
for (var key in loggers) {
connectLogger(loggers[key]);
}
}
}
function setLevel(level) {
currentLevel = level;
}
return {
setters: [],
execute: function () {
logLevel = {
_export('logLevel', logLevel = {
none: 0,

@@ -104,3 +84,3 @@ error: 1,

debug: 4
};
});

@@ -114,4 +94,27 @@ _export('logLevel', logLevel);

loggerConstructionKey = {};
function getLogger(id) {
return loggers[id] || (loggers[id] = createLogger(id));
}
Logger = (function () {
_export('getLogger', getLogger);
function addAppender(appender) {
appenders.push(appender);
if (appenders.length === 1) {
for (var key in loggers) {
connectLogger(loggers[key]);
}
}
}
_export('addAppender', addAppender);
function setLevel(level) {
currentLevel = level;
}
_export('setLevel', setLevel);
_export('Logger', Logger = function () {
function Logger(id, key) {

@@ -136,3 +139,3 @@ _classCallCheck(this, Logger);

return Logger;
})();
}());

@@ -139,0 +142,0 @@ _export('Logger', Logger);

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

### 1.0.0-beta.1.2.0 (2016-03-22)
* Update to Babel 6
### 1.0.0-beta.1.1.2 (2016-03-01)

@@ -2,0 +6,0 @@

@@ -39,7 +39,7 @@ // Karma configuration

sourceMap: 'inline',
modules: 'system',
moduleIds: false,
loose: "all",
optional: [
"es7.decorators"
presets: [ 'es2015-loose', 'stage-1'],
plugins: [
'syntax-flow',
'transform-decorators-legacy',
'transform-flow-strip-types'
]

@@ -46,0 +46,0 @@ }

{
"name": "aurelia-logging",
"version": "1.0.0-beta.1.1.2",
"version": "1.0.0-beta.1.2.0",
"description": "A minimal but effective logging mechanism with support for log levels and pluggable log appenders.",

@@ -36,8 +36,17 @@ "keywords": [

"aurelia-tools": "^0.1.12",
"babel-dts-generator": "^0.2.17",
"babel-dts-generator": "^0.4.5",
"babel-eslint": "^4.1.1",
"babel-plugin-syntax-flow": "^6.5.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-es2015-modules-amd": "^6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "^6.7.0",
"babel-plugin-transform-es2015-modules-systemjs": "^6.6.5",
"babel-plugin-transform-flow-strip-types": "^6.7.0",
"babel-preset-es2015": "^6.6.0",
"babel-preset-es2015-loose": "^7.0.0",
"babel-preset-stage-1": "^6.5.0",
"conventional-changelog": "0.0.11",
"del": "^1.1.0",
"gulp": "^3.8.10",
"gulp-babel": "^5.2.1",
"gulp-babel": "^6.1.2",
"gulp-bump": "^0.1.11",

@@ -50,3 +59,3 @@ "gulp-eslint": "^1.0.0",

"karma": "^0.13.15",
"karma-babel-preprocessor": "^5.2.2",
"karma-babel-preprocessor": "^6.0.1",
"karma-chrome-launcher": "^0.1.7",

@@ -53,0 +62,0 @@ "karma-coverage": "^0.3.1",

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