New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dendronhq/engine-server

Package Overview
Dependencies
Maintainers
1
Versions
514
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dendronhq/engine-server - npm Package Compare versions

Comparing version

to
0.6.9

10

CHANGELOG.md

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

## [0.6.9](https://github.com/dendronhq/dendron/compare/v0.6.8...v0.6.9) (2020-08-16)
### Bug Fixes
- issue with schemas that have same ids ([3f93b31](https://github.com/dendronhq/dendron/commit/3f93b31bffdaa6092a7c03c48db46edf0d89f65a))
### Features
- **pods:** ability to not publish select lines ([e90514b](https://github.com/dendronhq/dendron/commit/e90514bc85179598ad9de9612ee6684e8195a7aa))
## 0.6.8 (2020-08-15)

@@ -8,0 +18,0 @@

11

lib/__tests__/engine.spec.js

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

const schema = engine.schemas["foo"];
const barSchema = engine.schemas["bar"];
const schemaMatch = common_all_1.SchemaUtils.matchNote(note, engine.schemas);

@@ -52,2 +53,8 @@ expect(schemaMatch.toRawProps()).toEqual(schema.toRawProps());

expect(schemaNamespace.namespace).toBeTruthy();
// check that children with same id are still unique
const fooOneChild = lodash_1.default.find(schema.children, { id: "one" });
expect(fooOneChild.fname).toEqual("foo.schema");
const barOneChild = lodash_1.default.find(barSchema.children, { id: "one" });
expect(barOneChild.fname).toEqual("bar.schema");
expect(common_all_1.testUtils.omitEntropicProps(fooOneChild.toRawProps(), true)).toMatchSnapshot("bond");
// // case3

@@ -186,6 +193,4 @@ // schema = engine.schemas["test1"];

expect(lodash_1.default.omit(note.toRawProps(), "body")).toEqual(lodash_1.default.omit(noteUpdated.toRawProps(), "body"));
expect(lodash_1.default.trim(noteUpdated.body)).toEqual("- [[refactor.one]]");
// check custom att in file
const { content, data } = common_server_1.FileTestUtils.readMDFile(root, "foo.md");
expect(lodash_1.default.trim(content)).toEqual("- [[refactor.one]]");
const { data } = common_server_1.FileTestUtils.readMDFile(root, "foo.md");
expect(stripEntropicData(data)).toEqual({

@@ -192,0 +197,0 @@ bond: true,

@@ -128,3 +128,3 @@ "use strict";

root,
})).toEqual('@import "ref.md" {line_begin=11}');
})).toEqual('@import "ref.md" {line_begin=10}');
});

@@ -134,5 +134,14 @@ it("anchor start", () => {

root,
})).toEqual('@import "ref.md" {line_begin=11 line_end=19}');
})).toEqual('@import "ref.md" {line_begin=10 line_end=18}');
});
});
describe("stripLocalOnlyTags", () => {
it("basic", () => {
const txt = `
- this is a bullet
- this is a secret <!--LOCAL_ONLY_LINE-->
`;
expect(lodash_1.default.trim(utils_1.stripLocalOnlyTags(txt))).toEqual("- this is a bullet");
});
});
//# sourceMappingURL=utils.spec.js.map

@@ -26,1 +26,2 @@ export declare const VERSION = "BOND";

}) => string;
export declare function stripLocalOnlyTags(doc: string): string;

@@ -6,10 +6,9 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.replaceRefWithMPEImport = exports.matchRefMarker = exports.parseFileLink = exports.parseDendronRef = exports.extractBlock = exports.VERSION = void 0;
exports.stripLocalOnlyTags = exports.replaceRefWithMPEImport = exports.matchRefMarker = exports.parseFileLink = exports.parseDendronRef = exports.extractBlock = exports.VERSION = void 0;
const common_server_1 = require("@dendronhq/common-server");
const lodash_1 = __importDefault(require("lodash"));
const path_1 = __importDefault(require("path"));
const markdown_it_1 = __importDefault(require("markdown-it"));
// @ts-ignore
const markdown_it_ast_1 = __importDefault(require("markdown-it-ast"));
const common_server_1 = require("@dendronhq/common-server");
const fs_extra_1 = __importDefault(require("fs-extra"));
const path_1 = __importDefault(require("path"));
process.env["LOG_DST"] = "/tmp/bond.log";

@@ -162,3 +161,2 @@ const L = common_server_1.createLogger("bond");

L.info({ ctx, line });
fs_extra_1.default.appendFileSync("/tmp/bond2.log", JSON.stringify({ ctx, line }));
const match = exports.matchRefMarker(line);

@@ -208,2 +206,16 @@ let prefix = `@import`;

};
function stripLocalOnlyTags(doc) {
const re = new RegExp(/(?<raw>.+<!--LOCAL_ONLY_LINE-->)/);
let matches;
do {
matches = doc.match(re);
if (matches) {
// @ts-ignore
const { raw, body } = matches.groups;
doc = doc.replace(raw, "");
}
} while (matches);
return doc;
}
exports.stripLocalOnlyTags = stripLocalOnlyTags;
//# sourceMappingURL=utils.js.map
{
"name": "@dendronhq/engine-server",
"version": "0.6.8",
"version": "0.6.9",
"description": "dendron-engine",

@@ -41,4 +41,4 @@ "license": "GPLv3",

"dependencies": {
"@dendronhq/common-all": "^0.6.1",
"@dendronhq/common-server": "^0.6.5",
"@dendronhq/common-all": "^0.6.9",
"@dendronhq/common-server": "^0.6.9",
"fs-extra": "^9.0.1",

@@ -85,3 +85,3 @@ "fuse.js": "^6.3.0",

},
"gitHead": "033781bd2f4fdd63c1e59eb7439920efab24acdc"
"gitHead": "4113fc52c31b25fd79af556334727f973259591b"
}

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