Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
breck7 committed Aug 29, 2024
1 parent 96a2bfe commit 20b4cff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"homepage": "https://wws.scroll.pub",
"dependencies": {
"minimist": "^1.2.8",
"scroll-cli": "^121.0.0",
"scrollsdk": "^80.1.1"
"scroll-cli": "^125.0.1",
"scrollsdk": "^84.0.0"
},
"devDependencies": {
"tap": "^18.7.2"
Expand Down
14 changes: 7 additions & 7 deletions wws.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const fs = require("fs")

// Scroll Notation Includes
const { Disk } = require("scrollsdk/products/Disk.node.js")
const { TreeNode } = require("scrollsdk/products/TreeNode.js")
const { Particle } = require("scrollsdk/products/Particle.js")
const { ScrollCli, ScrollFile, ScrollFileSystem } = require("scroll-cli")
const packageJson = require("./package.json")

Expand Down Expand Up @@ -173,7 +173,7 @@ viewSourceUrl https://github.com/breck7/wws/blob/main/wws.js
}

listCommand() {
const table = new TreeNode(
const table = new Particle(
this.folders.map(concept => {
const { fetched, id, description } = concept
return {
Expand All @@ -193,8 +193,8 @@ viewSourceUrl https://github.com/breck7/wws/blob/main/wws.js
const { wwsDir } = this
const rootFolder = path.join(wwsDir, folderName)
const wwsFile = path.join(rootFolder, "wws.scroll")
if (!Disk.exists(wwsFile)) return new TreeNode()
return new TreeNode(Disk.read(wwsFile))
if (!Disk.exists(wwsFile)) return new Particle()
return new Particle(Disk.read(wwsFile))
}

fetchScroll(folderName) {
Expand All @@ -214,9 +214,9 @@ viewSourceUrl https://github.com/breck7/wws/blob/main/wws.js
this.log(`Updating ${folderName}`)
require("child_process").execSync(`cd ${rootFolder} && git pull origin wws`)
}
const settingsTree = this.getFolderSettings(folder.id)
settingsTree
.filter(node => node.getLine().startsWith("subfolder"))
const settingsParticle = this.getFolderSettings(folder.id)
settingsParticle
.filter(particle => particle.getLine().startsWith("subfolder"))
.forEach(subfolder => {
const subfolderName = sanitizeFolderName(subfolder.words[1])
const subfolderPath = path.join(rootFolder, subfolderName)
Expand Down
8 changes: 4 additions & 4 deletions wws.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ const path = require("path")
const { TestRacer } = require("scrollsdk/products/TestRacer.js")
const { WWSCli } = require("./wws.js")

const testTree = {}
const testParticles = {}

testTree.basics = areEqual => {
testParticles.basics = areEqual => {
// Arrange
const wws = new WWSCli()
// Act/Assert
areEqual(!!wws, true)
}

if (module && !module.parent) TestRacer.testSingleFile(__filename, testTree)
if (module && !module.parent) TestRacer.testSingleFile(__filename, testParticles)

module.exports = { testTree }
module.exports = { testParticles }

0 comments on commit 20b4cff

Please sign in to comment.