@textlint/ast-tester
Advanced tools
Comparing version 12.0.0-beta.0 to 12.0.0-beta.1
@@ -24,4 +24,4 @@ // LICENSE : MIT | ||
exports.test = exports.isTxtAST = void 0; | ||
var assert = __importStar(require("assert")); | ||
var unist_test_1 = require("./unist-test"); | ||
const assert = __importStar(require("assert")); | ||
const unist_test_1 = require("./unist-test"); | ||
function isTxtAST(node) { | ||
@@ -59,7 +59,7 @@ try { | ||
// loc | ||
var loc = node.loc; | ||
const loc = node.loc; | ||
assert.ok(loc !== null && loc !== undefined); | ||
assert.strictEqual(typeof loc, "object"); | ||
var start = loc.start; | ||
var end = loc.end; | ||
const start = loc.start; | ||
const end = loc.end; | ||
if (start !== null && start !== undefined) { | ||
@@ -96,3 +96,3 @@ assert.strictEqual(typeof start, "object"); | ||
// range | ||
var range = node.range; | ||
const range = node.range; | ||
assert.ok(range !== null && range !== undefined); | ||
@@ -99,0 +99,0 @@ assert.ok(Array.isArray(range)); |
@@ -24,3 +24,3 @@ // LICENSE : MIT | ||
exports.test = exports.isUnist = void 0; | ||
var assert = __importStar(require("assert")); | ||
const assert = __importStar(require("assert")); | ||
// https://github.com/wooorm/unist | ||
@@ -51,8 +51,8 @@ function isUnist(node) { | ||
} | ||
var position = node.position; | ||
const position = node.position; | ||
if (position !== null && position !== undefined) { | ||
assert.strictEqual(typeof position, "object"); | ||
var start = position.start; | ||
var indent = position.indent; | ||
var end = position.end; | ||
const start = position.start; | ||
const indent = position.indent; | ||
const end = position.end; | ||
if (start !== null && start !== undefined) { | ||
@@ -59,0 +59,0 @@ assert.strictEqual(typeof start, "object"); |
@@ -36,7 +36,7 @@ // LICENSE : MIT | ||
// loc | ||
var loc = node.loc; | ||
const loc = node.loc; | ||
assert.ok(loc !== null && loc !== undefined); | ||
assert.strictEqual(typeof loc, "object"); | ||
var start = loc.start; | ||
var end = loc.end; | ||
const start = loc.start; | ||
const end = loc.end; | ||
if (start !== null && start !== undefined) { | ||
@@ -73,3 +73,3 @@ assert.strictEqual(typeof start, "object"); | ||
// range | ||
var range = node.range; | ||
const range = node.range; | ||
assert.ok(range !== null && range !== undefined); | ||
@@ -76,0 +76,0 @@ assert.ok(Array.isArray(range)); |
@@ -28,8 +28,8 @@ // LICENSE : MIT | ||
} | ||
var position = node.position; | ||
const position = node.position; | ||
if (position !== null && position !== undefined) { | ||
assert.strictEqual(typeof position, "object"); | ||
var start = position.start; | ||
var indent = position.indent; | ||
var end = position.end; | ||
const start = position.start; | ||
const indent = position.indent; | ||
const end = position.end; | ||
if (start !== null && start !== undefined) { | ||
@@ -36,0 +36,0 @@ assert.strictEqual(typeof start, "object"); |
{ | ||
"name": "@textlint/ast-tester", | ||
"version": "12.0.0-beta.0", | ||
"version": "12.0.0-beta.1", | ||
"description": "Compliance tests for textlint's AST(Abstract Syntax Tree).", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@textlint/ast-node-types": "^12.0.0-beta.0" | ||
"@textlint/ast-node-types": "^12.0.0-beta.1" | ||
}, | ||
@@ -59,3 +59,3 @@ "devDependencies": { | ||
"email": "azuciao@gmail.com", | ||
"gitHead": "1e0d0d7f628be0bfce04b6cd36fcc8390ca43096" | ||
"gitHead": "2856b387cfb0a151655a809e8253b242e7b90725" | ||
} |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
148331
0