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

ibm-connections-wikis

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ibm-connections-wikis - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

3

lib/constants/xml-namespaces.json

@@ -5,3 +5,4 @@ {

"td": "urn:ibm.com/td",
"ca": "http://www.ibm.com/xmlns/prod/composite-applications/v1.0"
"ca": "http://www.ibm.com/xmlns/prod/composite-applications/v1.0",
"opensearch": "http://a9.com/-/spec/opensearch/1.1/"
}

@@ -12,3 +12,3 @@ 'use strict';

const qsValidParameters = ['sO', 'ps'];
const qsValidParameters = ['sO', 'ps', 'page'];

@@ -15,0 +15,0 @@ /**

@@ -12,3 +12,3 @@ 'use strict';

const qsValidParameters = ['sO', 'ps'];
const qsValidParameters = ['sO', 'ps', 'page'];

@@ -15,0 +15,0 @@ /**

@@ -18,4 +18,4 @@ 'use strict';

wikiPage: function wikiPageParserFunction(responseXML) {
const response = ensureXMLDoc(responseXML);
const selectorEntry = xpath('/atom:entry', response, true);
const xmlDocument = ensureXMLDoc(responseXML);
const selectorEntry = xpath('/atom:entry', xmlDocument, true);

@@ -28,14 +28,22 @@ return {

pageComments: function pageCommentsParser(responseXML) {
const response = ensureXMLDoc(responseXML);
const selectorEntries = xpath('/atom:feed/atom:entry', response);
const pageComments = _.map(selectorEntries, entry => wikiPageCommentsParser(entry));
const xmlDocument = ensureXMLDoc(responseXML);
const selectorEntries = xpath('/atom:feed/atom:entry', xmlDocument);
return { pageComments };
const result = {
totalResults: xpath('number(atom:feed/opensearch:totalResults/text())', xmlDocument, true),
entries: _.map(selectorEntries, entry => wikiPageCommentsParser(entry)),
};
return result;
},
pageVersions: function pageCommentsParser(responseXML) {
const response = ensureXMLDoc(responseXML);
const selectorEntries = xpath('/atom:feed/atom:entry', response);
const pageVersions = _.map(selectorEntries, entry => wikiPageVersionParser(entry));
const xmlDocument = ensureXMLDoc(responseXML);
const selectorEntries = xpath('/atom:feed/atom:entry', xmlDocument);
return { pageVersions };
const result = {
totalResults: xpath('number(atom:feed/opensearch:totalResults/text())', xmlDocument, true),
entries: _.map(selectorEntries, entry => wikiPageVersionParser(entry)),
};
return result;
},

@@ -45,4 +53,4 @@

pageVersionDetails: function pageVersionParser(responseXML) {
const response = ensureXMLDoc(responseXML);
const selectorEntry = xpath('/atom:entry', response, true);
const xmlDocument = ensureXMLDoc(responseXML);
const selectorEntry = xpath('/atom:entry', xmlDocument, true);

@@ -55,5 +63,5 @@ return {

mediaContent: function mediaContentParser(responseXML) {
const response = ensureXMLDoc(responseXML);
const xmlDocument = ensureXMLDoc(responseXML);
let result = serializeXML(response)
let result = serializeXML(xmlDocument)
.replace('<?xml version="1.0" encoding="UTF-8"?>', '')

@@ -60,0 +68,0 @@ .replace('<!DOCTYPE html>', '')

{
"name": "ibm-connections-wikis",
"version": "1.1.0",
"description": "An implementation for the IBM Connections Wikis API",
"version": "1.2.0",
"description": "An implementation of the IBM Connections Wikis API",
"license": "MIT",
"main": "lib/index.js",
"author": "Benjamin Kroeger <benjamin.kroeger@gmail.com>",
"author": "GIS AG <admin@gis-ag.com>",
"contributors": [
"Andreja Jevtic <andrajevtic@gmail.com>"
"Andreja Jevtic <andrajevtic@gmail.com>",
"Benjamin Kroeger <benjamin.kroeger@gmail.com>"
],

@@ -19,8 +20,8 @@ "keywords": [

"type": "git",
"url": "git+https://github.com/benkroeger/ibm-connections-wikis.git"
"url": "git+https://bitbucket.org/gisag/ibm-connections-wikis.git"
},
"bugs": {
"url": "https://github.com/benkroeger/ibm-connections-wikis/issues"
"url": "https://bitbucket.org/gisag/ibm-connections-wikis/issues"
},
"homepage": "https://github.com/benkroeger/ibm-connections-wikis#readme",
"homepage": "https://bitbucket.org/gisag/ibm-connections-wikis#readme",
"scripts": {

@@ -27,0 +28,0 @@ "coverage": "nyc npm run test && nyc report --reporter=html",

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