Skip to content

Commit 22a3b04

Browse files
fsdiogoterichadbourne
authored andcommitted
chore: update ipfs (#251)
1 parent 57bb6e4 commit 22a3b04

File tree

12 files changed

+2777
-2560
lines changed

12 files changed

+2777
-2560
lines changed

package-lock.json

Lines changed: 2753 additions & 2534 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"async": "^2.6.1",
1818
"cids": "^0.5.6",
1919
"highlight.js": "^9.12.0",
20-
"ipfs": "^0.35.0",
20+
"ipfs": "^0.36.4",
2121
"ipfs-css": "^0.6.0",
2222
"marked": "^0.4.0",
2323
"monaco-editor": "^0.6.1",

src/tutorials/Basics/01.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const validate = async (result, ipfs) => {
2525
return { fail: 'Did not return a valid CID instance.' }
2626
}
2727
28-
const hash = 'zdpuApm55Qv2zRxb3KKjVUxhQSw2r4a7jeiDV7163yCQnfivy'
28+
const hash = 'bafyreicaoyussrycqolu4k2iaxleu2uakjlq57tuxq3djxn4wnyfp4yk3y'
2929
if (result.toBaseEncodedString() === hash) {
3030
return { success: 'Everything works!' }
3131
} else {

src/tutorials/Basics/02.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const validate = async (result, ipfs) => {
2727
return { fail: 'Did not return a valid CID instance.' }
2828
}
2929
30-
const hash = 'zdpuAoPanArLvuFtuvmLYuSvp8zE8wuKSMZUkMN8Y1PaHLvKP'
30+
const hash = 'bafyreibmdfd7c5db4kls4ty57zljfhqv36gi43l6txl44pi423wwmeskwy'
3131
if (result.toBaseEncodedString() === hash) {
3232
return { success: 'Everything works!' }
3333
} else {

src/tutorials/Blog/01.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ const validate = async (result, ipfs) => {
2424
if (validatedArray.fail) {
2525
return validatedArray
2626
}
27-
const natCid = 'zdpuAyB57Xn8fuPvM8Gam5ycJTz6bgzLqtQBihyFuh5T7a6SK'
28-
const samCid = 'zdpuAzUoWGnKe4p13YbexQrb5AMhnDWDCqJt2XyqVPU6DxS4m'
27+
const natCid = 'bafyreif5pgrqzisqx2uqffd4dfbao7lf5vcgkvernetj7nitapesoyouha'
28+
const samCid = 'bafyreigq4aqwo7fisdgkwxao6r6jdcw6pjvqkgeaadwsc2mgzvybuoa4sy'
2929
for (const cid of result) {
3030
const obj = await ipfs.dag.get(cid)
3131
const node = obj.value
@@ -52,7 +52,7 @@ const validate = async (result, ipfs) => {
5252
return { fail: `The author of the \`${node.content}\` blog post (${nodeAuthor}) did not match the the expected author (${expectedAuthor}).` }
5353
}
5454
}
55-
const expectedCids = ['zdpuAkSPEnmgR1rqKkzpFN5qfJshCQKqMaVtUSpQJAMLdw3KF', 'zdpuAxzw762rP3CXZpAsKagPFR2AyqmZU2sN8U1GuVCeoYUEo']
55+
const expectedCids = ['bafyreiaahxu4lot4ffzaxnz626kxipxt3lm43lsszcc4q6vydqrwnu7kpi', 'bafyreif24ddeqipektksc2jqhulgefwvhwhpylpkmjsdysxygllyeydwqq']
5656
const resultCids = result.map((cid) => cid.toBaseEncodedString())
5757
if (shallowEqualArrays(resultCids.sort(), expectedCids.sort())) {
5858
return { success: 'Everything works!' }

src/tutorials/Blog/02.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ const validate = async (result, ipfs) => {
2525
return validatedArray
2626
}
2727
28-
const TREE_POST_CID = 'zdpuAkSPEnmgR1rqKkzpFN5qfJshCQKqMaVtUSpQJAMLdw3KF'
29-
const COMPUTER_POST_CID = 'zdpuAxzw762rP3CXZpAsKagPFR2AyqmZU2sN8U1GuVCeoYUEo'
28+
const TREE_POST_CID = 'bafyreiaahxu4lot4ffzaxnz626kxipxt3lm43lsszcc4q6vydqrwnu7kpi'
29+
const COMPUTER_POST_CID = 'bafyreif24ddeqipektksc2jqhulgefwvhwhpylpkmjsdysxygllyeydwqq'
3030
if (TREE_POST_CID === result[0].toBaseEncodedString() && COMPUTER_POST_CID === result[1].toBaseEncodedString()) {
3131
return {
3232
log: {

src/tutorials/Blog/03.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ const validate = async (result, ipfs) => {
4444
return { fail: 'The values of the `posts` array must be links.' }
4545
}
4646
47-
const treePostCid = 'zdpuAri55PR9iW239ahcbnfkFU2TVyD5iLmqEFmwY634KZAJV'
48-
const computerPostCid = 'zdpuAqaHPSosSZFRPe7u5q3yNqgg4JuvrLaUJxGamNPLhWivX'
47+
const treePostCid = 'bafyreic5ndfk2yj4vr7pdhk4n435hxr522faalcse2ls4ukzddr7d5qxhi'
48+
const computerPostCid = 'bafyreicmrzqpsebu5or7zjeffvnc3g76khmyzdo3q64i7ylvekxgcyqszq'
4949
let expectedPosts
5050
switch (node.tag) {
5151
case 'hobby':

src/tutorials/Blog/04.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const validate = async (result, ipfs) => {
3636
if (!CID.isCID(node.author)) {
3737
return { fail: 'The value of `author` needs to be a link.' }
3838
}
39-
const samCid = 'zdpuAzUoWGnKe4p13YbexQrb5AMhnDWDCqJt2XyqVPU6DxS4m'
39+
const samCid = 'bafyreigq4aqwo7fisdgkwxao6r6jdcw6pjvqkgeaadwsc2mgzvybuoa4sy'
4040
const nodeAuthor = node.author.toBaseEncodedString()
4141
if (nodeAuthor !== samCid) {
4242
return { fail: 'The author of the new blog post needs to be `Sam`.' }

src/tutorials/Blog/05.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ const validate = async (result, ipfs) => {
4747
}
4848
4949
let expectedPosts
50-
const treePostCid = 'zdpuAri55PR9iW239ahcbnfkFU2TVyD5iLmqEFmwY634KZAJV'
51-
const computerPostCid = 'zdpuAqaHPSosSZFRPe7u5q3yNqgg4JuvrLaUJxGamNPLhWivX'
52-
const dogPostCid = 'zdpuAuaznfNPWfgSSrcGxkm3yqyssY6mz8i5T2gxqpEpNExG6'
50+
const treePostCid = 'bafyreic5ndfk2yj4vr7pdhk4n435hxr522faalcse2ls4ukzddr7d5qxhi'
51+
const computerPostCid = 'bafyreicmrzqpsebu5or7zjeffvnc3g76khmyzdo3q64i7ylvekxgcyqszq'
52+
const dogPostCid = 'bafyreieifpyb4ayum62wvgnibargbgu6cedy72vk7sjla2hp4aupk7b5t4'
5353
switch (node.tag) {
5454
case 'funny':
5555
expectedPosts = [dogPostCid]

src/tutorials/Blog/06.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ const validate = async (result, ipfs) => {
3232
return { fail: 'The value of `prev` of the "dogs" blog post needs to be a link.' }
3333
}
3434
35-
const dogPostCid = 'zdpuAxe3g8XBLrqbp3NrjaiBLTrXjJ3SJymePGutsRRMrhAKS'
36-
const computerPostCid = 'zdpuAwwT4kGJxT7mgVZRgvmV3ke8qGNZGLuCgLhJsdBSQGM44'
37-
const treePostCid = 'zdpuAri55PR9iW239ahcbnfkFU2TVyD5iLmqEFmwY634KZAJV'
38-
const treePostCidPrevNull = 'zdpuAoNUinwYTMoTR8Wq7945MKSSpAUNGW1d1wkTHhRcchG3D'
39-
const computerPostCidWhenTreePostCidPrevNull = 'zdpuAsFHXZkpXcjuERjACPp1pAs9J7b4cdYtn9Dv9xBcAGhWV'
40-
const dogPostCidWhenTreePostCidPrevNull = 'zdpuAkUysBpAE2yvWdLCBbUqXusYVe5kgFSS7YriyeLfA5F5d'
35+
const dogPostCid = 'bafyreifvq4aykfnxjgqqmjelphadwhzvc4mt6h3mwytj54oa3qakuis3ie'
36+
const computerPostCid = 'bafyreiflecr42lhn6bpy7friobhurxagp6ml34s5uzazqmwxxpqnouhfne'
37+
const treePostCid = 'bafyreic5ndfk2yj4vr7pdhk4n435hxr522faalcse2ls4ukzddr7d5qxhi'
38+
const treePostCidPrevNull = 'bafyreibl2dm2gt7mcgkmlviujca35332oq35tieyhcqaxtmuconjeg4d5q'
39+
const computerPostCidWhenTreePostCidPrevNull = 'bafyreidfm7qcllrk2n7nbxdoapc52e3hb37sgtcg3fhhx5agto6bk67rcy'
40+
const dogPostCidWhenTreePostCidPrevNull = 'bafyreiaa5a5haprk3wxxhw36y6p6mk5pnzsitykr77jjpq2tebqw4idggq'
4141
const nodePrev = node.prev
4242
4343
const computerNode = (await ipfs.dag.get(nodePrev)).value

src/tutorials/Blog/07.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ const validate = async (result, ipfs) => {
3838
return { fail: 'The return value of your traversePosts function needs to be an array.' }
3939
}
4040
41-
const dogPostCid = 'zdpuAxe3g8XBLrqbp3NrjaiBLTrXjJ3SJymePGutsRRMrhAKS'
42-
const computerPostCid = 'zdpuAwwT4kGJxT7mgVZRgvmV3ke8qGNZGLuCgLhJsdBSQGM44'
43-
const treePostCid = 'zdpuAri55PR9iW239ahcbnfkFU2TVyD5iLmqEFmwY634KZAJV'
41+
const dogPostCid = 'bafyreifvq4aykfnxjgqqmjelphadwhzvc4mt6h3mwytj54oa3qakuis3ie'
42+
const computerPostCid = 'bafyreiflecr42lhn6bpy7friobhurxagp6ml34s5uzazqmwxxpqnouhfne'
43+
const treePostCid = 'bafyreic5ndfk2yj4vr7pdhk4n435hxr522faalcse2ls4ukzddr7d5qxhi'
4444
4545
try {
4646
if (result.length !== 3 || result === undefined) {

vue.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
const CopyWebpackPlugin = require('copy-webpack-plugin')
2+
23
module.exports = {
34
publicPath: './',
45
devServer: {
56
port: 3000
67
},
78
configureWebpack: config => {
8-
config.resolve.alias = {
9-
ipfs: 'ipfs/dist/index.min.js'
10-
}
119
config.plugins.push(
1210
new CopyWebpackPlugin([
1311
{

0 commit comments

Comments
 (0)