diff --git a/.pnp.js b/.pnp.js index 8f61819a..207c37ca 100755 --- a/.pnp.js +++ b/.pnp.js @@ -48,7 +48,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/source-map-support", "npm:0.5.4"], ["@typescript-eslint/eslint-plugin", "virtual:6f50bb9424c73c7612c66dab5cf8914d8ec79550c84d8ca5e4888e80022682c708b4b5a1c510d282a03285cc9bb19002b477ae70d15882aa995ea1d5d6bf24ab#npm:4.20.0"], ["@typescript-eslint/parser", "virtual:6f50bb9424c73c7612c66dab5cf8914d8ec79550c84d8ca5e4888e80022682c708b4b5a1c510d282a03285cc9bb19002b477ae70d15882aa995ea1d5d6bf24ab#npm:4.20.0"], - ["ardrive-core-js", "npm:1.0.5"], + ["ardrive-core-js", "npm:1.1.0"], ["arweave", "npm:1.10.16"], ["axios", "npm:0.21.1"], ["chai", "npm:4.3.4"], @@ -1293,7 +1293,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/source-map-support", "npm:0.5.4"], ["@typescript-eslint/eslint-plugin", "virtual:6f50bb9424c73c7612c66dab5cf8914d8ec79550c84d8ca5e4888e80022682c708b4b5a1c510d282a03285cc9bb19002b477ae70d15882aa995ea1d5d6bf24ab#npm:4.20.0"], ["@typescript-eslint/parser", "virtual:6f50bb9424c73c7612c66dab5cf8914d8ec79550c84d8ca5e4888e80022682c708b4b5a1c510d282a03285cc9bb19002b477ae70d15882aa995ea1d5d6bf24ab#npm:4.20.0"], - ["ardrive-core-js", "npm:1.0.5"], + ["ardrive-core-js", "npm:1.1.0"], ["arweave", "npm:1.10.16"], ["axios", "npm:0.21.1"], ["chai", "npm:4.3.4"], @@ -1319,10 +1319,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["ardrive-core-js", [ - ["npm:1.0.5", { - "packageLocation": "./.yarn/cache/ardrive-core-js-npm-1.0.5-6e82770d54-02490de5ea.zip/node_modules/ardrive-core-js/", + ["npm:1.1.0", { + "packageLocation": "./.yarn/cache/ardrive-core-js-npm-1.1.0-e0622528b2-8f15a57d20.zip/node_modules/ardrive-core-js/", "packageDependencies": [ - ["ardrive-core-js", "npm:1.0.5"], + ["ardrive-core-js", "npm:1.1.0"], ["arweave", "npm:1.10.16"], ["arweave-bundles", "npm:1.0.3"], ["arweave-mnemonic-keys", "npm:0.0.9"], diff --git a/.yarn/cache/ardrive-core-js-npm-1.0.5-6e82770d54-02490de5ea.zip b/.yarn/cache/ardrive-core-js-npm-1.1.0-e0622528b2-8f15a57d20.zip similarity index 80% rename from .yarn/cache/ardrive-core-js-npm-1.0.5-6e82770d54-02490de5ea.zip rename to .yarn/cache/ardrive-core-js-npm-1.1.0-e0622528b2-8f15a57d20.zip index a3ae4a10..87e63032 100644 Binary files a/.yarn/cache/ardrive-core-js-npm-1.0.5-6e82770d54-02490de5ea.zip and b/.yarn/cache/ardrive-core-js-npm-1.1.0-e0622528b2-8f15a57d20.zip differ diff --git a/README.md b/README.md index 48fc38a3..f4c1fc4c 100644 --- a/README.md +++ b/README.md @@ -802,6 +802,30 @@ Creating a `.json` file of your manifest links output can be accomplished here w ardrive create-manifest -w /path/to/wallet -f "6c312b3e-4778-4a18-8243-f2b346f5e7cb" | jq '{links}' > links.json ``` +If you'd like to preview the contents of your manifest before uploading, you can perform a dry run and do some lightweight post processing to isolate the data: + +```shell +ardrive create-manifest -w /path/to/wallet -f "6c312b3e-4778-4a18-8243-f2b346f5e7cb" --dry-run | jq '{manifest}.manifest' +``` + +```json +{ + "manifest": "arweave/paths", + "version": "0.1.0", + "index": { + "path": "index.html" + }, + "paths": { + "hello_world.txt": { + "id": "Y7GFF8r9y0MEU_oi1aZeD87vrmai97JdRQ2L0cbGJ68" + }, + "index.html": { + "id": "pELonjVebHyBsdxVymvxbGTmHD96v9PuuUXj8GUHGoY" + } + } +} +``` + The manifest data transaction is tagged with a unique content-type, `application/x.arweave-manifest+json`, which tells the gateway to treat this file as a manifest. The manifest file itself is a `.json` file that holds the paths (the data transaction ids) to each file within the specified folder. When your folder is later changed by adding files or updating them with new revisions, the original manifest will NOT be updated on its own. A manifest is a permanent record of your files in their current state. diff --git a/package.json b/package.json index 8395f32a..84ba77bb 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "types": "./lib/index.d.ts", "dependencies": { - "ardrive-core-js": "1.0.5", + "ardrive-core-js": "1.1.0", "arweave": "^1.10.16", "axios": "^0.21.1", "commander": "^8.2.0", diff --git a/yarn.lock b/yarn.lock index 443933b7..a82999e4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -998,7 +998,7 @@ __metadata: "@types/source-map-support": ^0 "@typescript-eslint/eslint-plugin": ^4.18.0 "@typescript-eslint/parser": ^4.18.0 - ardrive-core-js: 1.0.5 + ardrive-core-js: 1.1.0 arweave: ^1.10.16 axios: ^0.21.1 chai: ^4.3.4 @@ -1024,9 +1024,9 @@ __metadata: languageName: unknown linkType: soft -"ardrive-core-js@npm:1.0.5": - version: 1.0.5 - resolution: "ardrive-core-js@npm:1.0.5" +"ardrive-core-js@npm:1.1.0": + version: 1.1.0 + resolution: "ardrive-core-js@npm:1.1.0" dependencies: arweave: ^1.10.16 arweave-bundles: ^1.0.3 @@ -1042,7 +1042,7 @@ __metadata: smartweave: ^0.4.45 utf8: ^3.0.0 uuid: ^8.3.2 - checksum: 02490de5ea3e806f1a793389b3dbf8dc89b6caa116870b0d32b8a0591eb3cd7c02dc16ff6c4c15c418b2d7734fcdd2379f20a640ac30292d4f6db629370b3941 + checksum: 8f15a57d20ba84a9801008453e27eeb2569909d0841c7bf5ffea7da1fd23af80414a12d4cc13976a2916c4d01e6c02a9ac0a0d1d5037fe2cc6703ca77ec8d85a languageName: node linkType: hard