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

confluence-content-extractor

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confluence-content-extractor - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

1

dist/config.d.ts

@@ -9,4 +9,5 @@ export interface Configuration {

TWITTER_SITE: string;
GA_TRACKING_ID: string;
}
declare const config: Configuration;
export { config };

7

dist/confluence/adf-processor.js

@@ -15,4 +15,5 @@ "use strict";

exports.scrubContent = void 0;
var adf_utils_1 = require("@atlaskit/adf-utils");
var util_1 = require("./util");
var builders_1 = require("@atlaskit/adf-utils/builders");
var scrub_1 = require("@atlaskit/adf-utils/scrub");
var identityProcessor = function (node) {

@@ -32,3 +33,3 @@ return node;

var mediaSingleProcessor = function (node) {
return (0, adf_utils_1.extension)({
return (0, builders_1.extension)({
extensionType: 'org.viqueen.media',

@@ -40,3 +41,3 @@ extensionKey: 'file',

var scrubContent = function (doc) {
return (0, adf_utils_1.scrubAdf)(doc, {
return (0, scrub_1.scrubAdf)(doc, {
nodeReplacements: {

@@ -43,0 +44,0 @@ bulletList: identityProcessor,

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

var api_1 = __importDefault(require("./confluence/api"));
var adf_utils_1 = require("@atlaskit/adf-utils");
var util_1 = require("./confluence/util");

@@ -49,2 +48,3 @@ var crypto_1 = __importDefault(require("crypto"));

var path_1 = __importDefault(require("path"));
var traverse_1 = require("@atlaskit/adf-utils/traverse");
var extractObjects = function (content, output) { return __awaiter(void 0, void 0, void 0, function () {

@@ -55,3 +55,3 @@ var inlineCards, resolvedObjects;

case 0:
inlineCards = (0, adf_utils_1.filter)(content.adfBody, function (node) { return node.type === 'inlineCard'; }).map(function (item) {
inlineCards = (0, traverse_1.filter)(content.adfBody, function (node) { return node.type === 'inlineCard'; }).map(function (item) {
var _a;

@@ -58,0 +58,0 @@ return {

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

@@ -19,3 +19,7 @@ "use strict";

react_1.default.createElement("meta", { name: "twitter:description", content: content.excerpt }),
react_1.default.createElement("title", null, content.identifier.title)),
react_1.default.createElement("title", null, content.identifier.title),
react_1.default.createElement("script", { async: true, src: "https://www.googletagmanager.com/gtag/js?id=".concat(config_1.config.GA_TRACKING_ID) }),
react_1.default.createElement("script", { dangerouslySetInnerHTML: {
__html: "\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '".concat(config_1.config.GA_TRACKING_ID, "');\n "),
} })),
react_1.default.createElement("body", null,

@@ -22,0 +26,0 @@ react_1.default.createElement("div", { id: "root" }))));

{
"name": "confluence-content-extractor",
"version": "1.0.2",
"version": "1.1.0",
"description": "confluence content extractor",

@@ -38,20 +38,20 @@ "bin": {

"devDependencies": {
"@atlaskit/adf-utils": "^16.0.1",
"@types/jest": "^27.0.3",
"@types/node": "^17.0.5",
"@types/react": "^18.0.5",
"@types/react-dom": "^18.0.0",
"axios": "^0.26.1",
"commander": "^9.1.0",
"dotenv": "^16.0.0",
"husky": "^7.0.4",
"jest": "^27.4.5",
"npm-check-updates": "^12.0.5",
"prettier": "^2.5.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"ts-jest": "^27.1.2",
"ts-node": "^10.7.0",
"typescript": "^4.5.4"
"@atlaskit/adf-utils": "^17.0.0",
"@types/jest": "^28.1.1",
"@types/node": "^17.0.41",
"@types/react": "^18.0.12",
"@types/react-dom": "^18.0.5",
"axios": "^0.27.2",
"commander": "^9.3.0",
"dotenv": "^16.0.1",
"husky": "^8.0.1",
"jest": "^28.1.1",
"npm-check-updates": "^13.1.2",
"prettier": "^2.6.2",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"ts-jest": "^28.0.4",
"ts-node": "^10.8.1",
"typescript": "^4.7.3"
}
}

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

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