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

@cocreate/docs

Package Overview
Dependencies
Maintainers
3
Versions
272
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cocreate/docs - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [1.0.4](https://github.com/CoCreate-app/CoCreate-docs/compare/v1.0.3...v1.0.4) (2021-01-16)
### Bug Fixes
* (merge html and commit extractor to one with one config) ([24be390](https://github.com/CoCreate-app/CoCreate-docs/commit/24be3901f90b360643ad5a8421e1ce05f2a8bc4f))
## [1.0.3](https://github.com/CoCreate-app/CoCreate-docs/compare/v1.0.2...v1.0.3) (2021-01-15)

@@ -2,0 +9,0 @@

36

CoCreate.config.json

@@ -24,27 +24,19 @@ {

"domains":["ws.cocreate.app"],
"route":"/signup",}
"route":"/signup",
},
]
/* Comment parse and upload to CoCreate */
// Directory to parse for comments and upload to CoCreate
// "directory": "./test_files/",
// "extensions": [
// "js",
// "css",
// "html"
// ],
// "ignores": [
// "node_modules",
// "vendor",
// "bower_components",
// "archive"
// ],
// "permissions": {
// "apiKey": "c2b08663-06e3-440c-ef6f-13978b42883a",
// "securityKey": "f26baf68-e3a9-45fc-effe-502e47116265",
// "organization_Id": "5de0387b12e200ea63204d6c"
// },
// Directory to parse for comments and upload to CoCreate
"directory": "./test_files/",
"extensions": [
"js",
"css",
"html"
],
"ignores": [
"node_modules",
"vendor",
"bower_components",
"archive"
],
}
{
"name": "@cocreate/docs",
"version": "1.0.3",
"version": "1.0.4",
"description": "Documentation generator ",

@@ -14,3 +14,3 @@ "keywords": [

"start": "node src/index.js",
"html": "node src/html_store.js",
"docs": "node src/html_store.js",
"build": "node src/index.js"

@@ -17,0 +17,0 @@ },

@@ -18,3 +18,3 @@ module.exports = {

{
assets: ["CHANGELOG.md"],
assets: ["CHANGELOG.md", "package.json"],
},

@@ -21,0 +21,0 @@ ],

const CoCreateExtract = require('./extract')
const fs = require('fs');
const { directory, ignores, extensions, socket} = require('../config.json');
const path = require('path');
const { directory, ignores, extensions, socket, sources} = require(path.resolve(process.cwd(), 'CoCreate.config.json'));
const {CoCreateSocketInit, CoCreateUpdateDocument, CoCreateCreateDocument } = require("./socket_process.js")

@@ -18,3 +20,3 @@ /**

/**
* Store data into dab
* Store data into db
*/

@@ -31,1 +33,20 @@ result.forEach((docs) => {

/**
* update document by config sources
*/
sources.forEach(({path, collection, document_id, name, category, ...rest}) => {
let content = fs.readFileSync(path, 'utf8');
if (content) {
CoCreateUpdateDocument({
collection,
document_id,
data: {
[name]: content,
category,
...rest
},
upsert: true
}, socket.config);
}
})

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