Comparing version 0.6.0 to 0.7.0
@@ -9,4 +9,10 @@ module.exports = { | ||
"airbnb-base", | ||
"plugin:security/recommended" | ||
"plugin:security/recommended", | ||
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
], | ||
parser: '@typescript-eslint/parser', // Specifies the ESLint parser | ||
parserOptions: { | ||
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features | ||
sourceType: 'module', // Allows for the use of imports | ||
}, | ||
"plugins": [ | ||
@@ -17,2 +23,4 @@ "security", | ||
"rules": { | ||
'import/no-unresolved': [0], | ||
"@typescript-eslint/no-explicit-any": [0], | ||
"jest/no-disabled-tests": [2], | ||
@@ -19,0 +27,0 @@ "jest/no-focused-tests": [2], |
@@ -6,2 +6,3 @@ # Changelog | ||
- Add transient logging feature. | ||
- Add typings | ||
@@ -8,0 +9,0 @@ ### 0.5.0 |
@@ -0,1 +1,2 @@ | ||
/** @type {jest.InitialOptions} */ | ||
module.exports = { | ||
@@ -10,4 +11,9 @@ verbose: false, | ||
'!**/test/**', | ||
'**/*.{js,jsx}', | ||
'**/*.{js,jsx,ts,tsx}', | ||
], | ||
coveragePathIgnorePatterns: [ | ||
'<rootDir>/dist/', | ||
'<rootDir>/node_modules/', | ||
'<rootDir>/test/', | ||
], | ||
coverageThreshold: { | ||
@@ -21,4 +27,18 @@ global: { | ||
}, | ||
setupTestFrameworkScriptFile: './test/setup.js', | ||
testMatch: ['**/test/**/*.test.js?(x)'], | ||
roots: [ | ||
'<rootDir>/lib/', | ||
'<rootDir>/test/', | ||
], | ||
setupFilesAfterEnv: ['./test/setup.ts'], | ||
testMatch: ['**/test/**/*.test.[t|j]s?(x)'], | ||
// Jasmine, jest's default test-runner, fails silently on afterAll within | ||
// a describe block. This is a bug that the jest team is not going to fix | ||
// because they plan to use jest-circus/runner by default in the near future. | ||
// https://github.com/facebook/jest/issues/6692 | ||
// TODO: Remove the testRunner option and the previous comment when jest | ||
// updates the default test-runner to jest-circus. | ||
testRunner: 'jest-circus/runner', | ||
transform: { | ||
'.+\\.[j|t]sx?$': 'ts-jest', | ||
}, | ||
}; |
@@ -7,21 +7,26 @@ { | ||
"dependencies": { | ||
"debug": "3.1.0", | ||
"lodash": "4.17.10", | ||
"node-fetch": "2.2.0", | ||
"uuid": "3.3.2" | ||
"debug": "4.1.1", | ||
"lodash": "4.17.15", | ||
"node-fetch": "2.6.0", | ||
"uuid": "3.3.3" | ||
}, | ||
"description": "Logging aggregation and distribution", | ||
"devDependencies": { | ||
"@types/debug": "0.0.30", | ||
"@types/lodash": "4.14.116", | ||
"@types/node-fetch": "2.1.2", | ||
"@types/uuid": "3.4.4", | ||
"eslint": "4.19.1", | ||
"eslint-config-airbnb-base": "13.0.0", | ||
"eslint-plugin-import": "2.13.0", | ||
"eslint-plugin-jest": "21.22.0", | ||
"@types/debug": "4.1.5", | ||
"@types/jest": "24.0.19", | ||
"@types/lodash": "4.14.144", | ||
"@types/node-fetch": "2.5.2", | ||
"@types/uuid": "3.4.5", | ||
"@typescript-eslint/eslint-plugin": "2.5.0", | ||
"@typescript-eslint/parser": "2.5.0", | ||
"eslint": "6.5.1", | ||
"eslint-config-airbnb-base": "14.0.0", | ||
"eslint-plugin-import": "2.18.2", | ||
"eslint-plugin-jest": "22.19.0", | ||
"eslint-plugin-security": "1.4.0", | ||
"jest": "23.2.0", | ||
"jest": "24.9.0", | ||
"jest-circus": "24.9.0", | ||
"pre-commit": "1.2.2", | ||
"typescript": "3.0.3" | ||
"ts-jest": "24.1.0", | ||
"typescript": "3.5.3" | ||
}, | ||
@@ -37,3 +42,3 @@ "engines": { | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"main": "dist/index.js", | ||
"name": "lalog", | ||
@@ -47,2 +52,3 @@ "pre-commit": { | ||
}, | ||
"pre-publish": "tsc", | ||
"repository": { | ||
@@ -57,5 +63,6 @@ "type": "git", | ||
"lintfix": "eslint --ext .js . --fix", | ||
"test": "npm run lint && npm run coverage && tsc" | ||
"test": "npm run lint && npm run coverage && tsc --incremental" | ||
}, | ||
"version": "0.6.0" | ||
"types": "dist/index.d.ts", | ||
"version": "0.7.0" | ||
} |
{ | ||
"compilerOptions": { | ||
"resolveJsonModule": true, | ||
/* Basic Options */ | ||
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ | ||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ | ||
"lib": ["es2016"], /* Specify library files to be included in the compilation. */ | ||
"allowJs": true, /* Allow javascript files to be compiled. */ | ||
"checkJs": true, /* Report errors in .js files. */ | ||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ | ||
// "declaration": true, /* Generates corresponding '.d.ts' file. */ | ||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ | ||
// "sourceMap": true, /* Generates corresponding '.map' file. */ | ||
// "outFile": "./", /* Concatenate and emit output to single file. */ | ||
// "outDir": "./", /* Redirect output structure to the directory. */ | ||
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ | ||
// "composite": true, /* Enable project compilation */ | ||
// "removeComments": true, /* Do not emit comments to output. */ | ||
"noEmit": true, /* Do not emit outputs. */ | ||
// "importHelpers": true, /* Import emit helpers from 'tslib'. */ | ||
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ | ||
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ | ||
/* Strict Type-Checking Options */ | ||
"strict": true, /* Enable all strict type-checking options. */ | ||
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ | ||
// "strictNullChecks": true, /* Enable strict null checks. */ | ||
// "strictFunctionTypes": true, /* Enable strict checking of function types. */ | ||
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ | ||
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ | ||
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ | ||
/* Additional Checks */ | ||
// "noUnusedLocals": true, /* Report errors on unused locals. */ | ||
// "noUnusedParameters": true, /* Report errors on unused parameters. */ | ||
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ | ||
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ | ||
/* Module Resolution Options */ | ||
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ | ||
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ | ||
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ | ||
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ | ||
// "typeRoots": [], /* List of folders to include type definitions from. */ | ||
// "types": [], /* Type declaration files to be included in compilation. */ | ||
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ | ||
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ | ||
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ | ||
/* Source Map Options */ | ||
// "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ | ||
// "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */ | ||
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ | ||
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ | ||
/* Experimental Options */ | ||
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ | ||
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ | ||
"allowJs": false, | ||
"checkJs": false, | ||
"declaration": true, | ||
"esModuleInterop": true, | ||
"incremental": true, | ||
"lib": ["es2019"], | ||
"module": "commonjs", | ||
"noEmit": false, | ||
"outDir": "dist", | ||
"resolveJsonModule": false, | ||
"sourceMap": true, | ||
"strict": true, | ||
"target": "es2017" | ||
}, | ||
@@ -64,5 +21,4 @@ "include": [ | ||
"exclude": [ | ||
"node_modules", | ||
"**/*.spec.ts" | ||
"node_modules" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
127130
26
1334
3
1
17
+ Addeddebug@4.1.1(transitive)
+ Addedlodash@4.17.15(transitive)
+ Addedms@2.1.3(transitive)
+ Addednode-fetch@2.6.0(transitive)
+ Addeduuid@3.3.3(transitive)
- Removeddebug@3.1.0(transitive)
- Removedlodash@4.17.10(transitive)
- Removedms@2.0.0(transitive)
- Removednode-fetch@2.2.0(transitive)
- Removeduuid@3.3.2(transitive)
Updateddebug@4.1.1
Updatedlodash@4.17.15
Updatednode-fetch@2.6.0
Updateduuid@3.3.3