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

baset-core

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baset-core - npm Package Compare versions

Comparing version 0.14.2 to 0.14.3

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

<a name="0.14.3"></a>
## [0.14.3](https://github.com/Igmat/baset/compare/v0.14.2...v0.14.3) (2018-10-07)
### Bug Fixes
* **core:** add better handling for errors in tests ([91f2825](https://github.com/Igmat/baset/commit/91f2825))
<a name="0.14.2"></a>

@@ -8,0 +20,0 @@ ## [0.14.2](https://github.com/Igmat/baset/compare/v0.14.1...v0.14.2) (2018-09-17)

1

dist/abstractBaseliner.d.ts

@@ -5,2 +5,3 @@ export interface ICompareResult {

actual: string;
errors: any[];
diff: {

@@ -7,0 +8,0 @@ console: string;

@@ -22,2 +22,3 @@ "use strict";

actual: newBase,
errors: [],
diff: {

@@ -24,0 +25,0 @@ console: '',

export declare const image: unique symbol;
export declare const html: unique symbol;
export declare const error: unique symbol;

@@ -5,2 +5,3 @@ "use strict";

exports.html = Symbol('html');
exports.error = Symbol('error');
//# sourceMappingURL=dataTypes.js.map

2

dist/tap.d.ts

@@ -15,3 +15,3 @@ import { TestError } from './testError';

export interface IErrorTestOptions extends IFailedTestOptions {
error: TestError;
error: TestError | Error[];
todo?: false;

@@ -18,0 +18,0 @@ }

@@ -58,7 +58,13 @@ "use strict";

}
: {
index,
passed: false,
error: new testError_1.TestError(result),
};
: result.errors.length
? {
index,
passed: false,
error: result.errors,
}
: {
index,
passed: false,
error: new testError_1.TestError(result),
};
}

@@ -65,0 +71,0 @@ }

@@ -17,4 +17,8 @@ "use strict";

const util_1 = require("util");
const dataTypes_1 = require("./dataTypes");
const utils_1 = require("./utils");
exports.circularReference = Symbol('circularReference');
function isError(obj) {
return !!(obj[dataTypes_1.error]);
}
class TestGroup {

@@ -40,6 +44,10 @@ constructor(pattern, options, pluginsOptions) {

catch (err) {
return err;
return {
[dataTypes_1.error]: err,
};
}
});
const testsResults = testsExports.map((value, index) => this.calculateValues(value, context, sandbox, `exports[${index}]`));
const testsResults = testsExports.map((value, index) => isError(value)
? Promise.resolve(value)
: this.calculateValues(value, context, sandbox, `exports[${index}]`));
const ext = path_1.default.extname(filePath);

@@ -46,0 +54,0 @@ const baselinePath = path_1.default.resolve(filePath.replace(new RegExp(`${ext}$`), this.baseliner.ext));

{
"name": "baset-core",
"version": "0.14.2",
"version": "0.14.3",
"description": "Core library for BaseT project.",

@@ -35,7 +35,7 @@ "keywords": [

"dependencies": {
"baset-vm": "^0.14.2",
"baset-vm": "^0.14.3",
"chance": "^1.0.16",
"typescript": "^3.0.3"
},
"gitHead": "f778d3ecb4cdc64d3e489723529bf9a23f01d64d"
"gitHead": "7c9e10ac30215b5320a76c819a3da1c793bb0f4d"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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