From 65d6974927ac11d96de46cfb8bd215e0e018cd98 Mon Sep 17 00:00:00 2001 From: Tony Spiro Date: Tue, 27 Aug 2024 14:19:03 -0700 Subject: [PATCH 1/2] add: media alt text --- package-lock.json | 310 +++++++++++++++++++++++++----- src/clients/bucket/media/index.ts | 3 + src/types/media.types.ts | 1 + 3 files changed, 264 insertions(+), 50 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8696c26..e125a4f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@cosmicjs/sdk", - "version": "1.0.9", + "version": "1.0.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@cosmicjs/sdk", - "version": "1.0.9", + "version": "1.0.11", "license": "MIT", "dependencies": { "axios": "^1.3.4", @@ -7023,6 +7023,7 @@ "inBundle": true, "license": "MIT", "optional": true, + "peer": true, "engines": { "node": ">=0.1.90" } @@ -7031,19 +7032,22 @@ "version": "1.1.3", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/@isaacs/string-locale-compare": { "version": "1.1.0", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/@npmcli/arborist": { "version": "5.6.3", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "@isaacs/string-locale-compare": "^1.1.0", "@npmcli/installed-package-contents": "^1.0.7", @@ -7095,6 +7099,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "engines": { "node": "^12.13.0 || ^14.15.0 || >=16" } @@ -7104,6 +7109,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "@npmcli/map-workspaces": "^2.0.2", "ini": "^3.0.0", @@ -7123,6 +7129,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "ansi-styles": "^4.3.0" }, @@ -7135,6 +7142,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "@gar/promisify": "^1.1.3", "semver": "^7.3.5" @@ -7148,6 +7156,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "@npmcli/promise-spawn": "^3.0.0", "lru-cache": "^7.4.4", @@ -7168,6 +7177,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "npm-bundled": "^1.1.1", "npm-normalize-package-bin": "^1.0.1" @@ -7184,6 +7194,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "npm-normalize-package-bin": "^1.0.1" } @@ -7193,6 +7204,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "@npmcli/name-from-folder": "^1.0.1", "glob": "^8.0.1", @@ -7208,6 +7220,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "cacache": "^16.0.0", "json-parse-even-better-errors": "^2.3.1", @@ -7223,6 +7236,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "mkdirp": "^1.0.4", "rimraf": "^3.0.2" @@ -7235,13 +7249,15 @@ "version": "1.0.1", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/@npmcli/node-gyp": { "version": "2.0.0", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "engines": { "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } @@ -7251,6 +7267,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "json-parse-even-better-errors": "^2.3.1" }, @@ -7263,6 +7280,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "infer-owner": "^1.0.4" }, @@ -7275,6 +7293,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "npm-package-arg": "^9.1.0", "postcss-selector-parser": "^6.0.10", @@ -7289,6 +7308,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "@npmcli/node-gyp": "^2.0.0", "@npmcli/promise-spawn": "^3.0.0", @@ -7305,6 +7325,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">= 10" } @@ -7313,13 +7334,15 @@ "version": "1.1.1", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/agent-base": { "version": "6.0.2", "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "debug": "4" }, @@ -7332,6 +7355,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "debug": "^4.1.0", "depd": "^1.1.2", @@ -7346,6 +7370,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "clean-stack": "^2.0.0", "indent-string": "^4.0.0" @@ -7359,6 +7384,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">=8" } @@ -7368,6 +7394,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -7382,19 +7409,22 @@ "version": "2.0.0", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/archy": { "version": "1.0.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/are-we-there-yet": { "version": "3.0.1", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "delegates": "^1.0.0", "readable-stream": "^3.6.0" @@ -7407,19 +7437,22 @@ "version": "2.0.6", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/balanced-match": { "version": "1.0.2", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/bin-links": { "version": "3.0.3", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "cmd-shim": "^5.0.0", "mkdirp-infer-owner": "^2.0.0", @@ -7437,6 +7470,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "engines": { "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } @@ -7446,6 +7480,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">=8" } @@ -7455,6 +7490,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "balanced-match": "^1.0.0" } @@ -7464,6 +7500,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "semver": "^7.0.0" } @@ -7473,6 +7510,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "@npmcli/fs": "^2.1.0", "@npmcli/move-file": "^2.0.0", @@ -7502,6 +7540,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -7518,6 +7557,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "engines": { "node": ">=10" } @@ -7527,6 +7567,7 @@ "dev": true, "inBundle": true, "license": "BSD-2-Clause", + "peer": true, "dependencies": { "ip-regex": "^4.1.0" }, @@ -7539,6 +7580,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6" } @@ -7548,6 +7590,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "string-width": "^4.2.3", "strip-ansi": "^6.0.1" @@ -7561,6 +7604,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "string-width": "^4.2.0" }, @@ -7576,6 +7620,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">=0.8" } @@ -7585,6 +7630,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "mkdirp-infer-owner": "^2.0.0" }, @@ -7597,6 +7643,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "color-name": "~1.1.4" }, @@ -7608,13 +7655,15 @@ "version": "1.1.4", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/color-support": { "version": "1.1.3", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "bin": { "color-support": "bin.js" } @@ -7624,6 +7673,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "strip-ansi": "^6.0.1", "wcwidth": "^1.0.0" @@ -7636,25 +7686,29 @@ "version": "1.0.1", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/concat-map": { "version": "0.0.1", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/console-control-strings": { "version": "1.1.0", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/cssesc": { "version": "3.0.0", "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "bin": { "cssesc": "bin/cssesc" }, @@ -7667,6 +7721,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "ms": "2.1.2" }, @@ -7683,13 +7738,15 @@ "version": "2.1.2", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/debuglog": { "version": "1.0.1", "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": "*" } @@ -7699,6 +7756,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "clone": "^1.0.2" } @@ -7707,13 +7765,15 @@ "version": "1.0.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/depd": { "version": "1.1.2", "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">= 0.6" } @@ -7723,6 +7783,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "asap": "^2.0.0", "wrappy": "1" @@ -7733,6 +7794,7 @@ "dev": true, "inBundle": true, "license": "BSD-3-Clause", + "peer": true, "engines": { "node": ">=0.3.1" } @@ -7741,7 +7803,8 @@ "version": "8.0.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/encoding": { "version": "0.1.13", @@ -7749,6 +7812,7 @@ "inBundle": true, "license": "MIT", "optional": true, + "peer": true, "dependencies": { "iconv-lite": "^0.6.2" } @@ -7758,6 +7822,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6" } @@ -7766,19 +7831,22 @@ "version": "2.0.3", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/fastest-levenshtein": { "version": "1.0.12", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/fs-minipass": { "version": "2.1.0", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "minipass": "^3.0.0" }, @@ -7790,19 +7858,22 @@ "version": "1.0.0", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/function-bind": { "version": "1.1.1", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/gauge": { "version": "4.0.4", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "aproba": "^1.0.3 || ^2.0.0", "color-support": "^1.1.3", @@ -7822,6 +7893,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -7840,13 +7912,15 @@ "version": "4.2.10", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/has": { "version": "1.0.3", "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "function-bind": "^1.1.1" }, @@ -7859,6 +7933,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">=8" } @@ -7867,13 +7942,15 @@ "version": "2.0.1", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/hosted-git-info": { "version": "5.2.1", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "lru-cache": "^7.5.1" }, @@ -7885,13 +7962,15 @@ "version": "4.1.1", "dev": true, "inBundle": true, - "license": "BSD-2-Clause" + "license": "BSD-2-Clause", + "peer": true }, "node_modules/npm/node_modules/http-proxy-agent": { "version": "5.0.0", "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "@tootallnate/once": "2", "agent-base": "6", @@ -7906,6 +7985,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "agent-base": "6", "debug": "4" @@ -7919,6 +7999,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "ms": "^2.0.0" } @@ -7929,6 +8010,7 @@ "inBundle": true, "license": "MIT", "optional": true, + "peer": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -7941,6 +8023,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "minimatch": "^5.0.1" }, @@ -7953,6 +8036,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">=0.8.19" } @@ -7962,6 +8046,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">=8" } @@ -7970,13 +8055,15 @@ "version": "1.0.4", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/inflight": { "version": "1.0.6", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -7986,13 +8073,15 @@ "version": "2.0.4", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/ini": { "version": "3.0.1", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "engines": { "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } @@ -8002,6 +8091,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "npm-package-arg": "^9.0.1", "promzard": "^0.3.0", @@ -8019,13 +8109,15 @@ "version": "2.0.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/ip-regex": { "version": "4.3.0", "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">=8" } @@ -8035,6 +8127,7 @@ "dev": true, "inBundle": true, "license": "BSD-2-Clause", + "peer": true, "dependencies": { "cidr-regex": "^3.1.1" }, @@ -8047,6 +8140,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "has": "^1.0.3" }, @@ -8059,6 +8153,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">=8" } @@ -8067,25 +8162,29 @@ "version": "1.0.1", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/isexe": { "version": "2.0.0", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/json-parse-even-better-errors": { "version": "2.3.1", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/json-stringify-nice": { "version": "1.1.4", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "funding": { "url": "https://github.com/sponsors/isaacs" } @@ -8097,25 +8196,29 @@ "node >= 0.2.0" ], "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/just-diff": { "version": "5.1.1", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/just-diff-apply": { "version": "5.4.1", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/libnpmaccess": { "version": "6.0.4", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "aproba": "^2.0.0", "minipass": "^3.1.1", @@ -8131,6 +8234,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "@npmcli/disparity-colors": "^2.0.0", "@npmcli/installed-package-contents": "^1.0.7", @@ -8150,6 +8254,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "@npmcli/arborist": "^5.6.3", "@npmcli/ci-detect": "^2.0.0", @@ -8175,6 +8280,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "@npmcli/arborist": "^5.6.3" }, @@ -8187,6 +8293,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "aproba": "^2.0.0", "npm-registry-fetch": "^13.0.0" @@ -8200,6 +8307,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "aproba": "^2.0.0", "npm-registry-fetch": "^13.0.0" @@ -8213,6 +8321,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "@npmcli/run-script": "^4.1.3", "npm-package-arg": "^9.0.1", @@ -8227,6 +8336,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "normalize-package-data": "^4.0.0", "npm-package-arg": "^9.0.1", @@ -8243,6 +8353,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "npm-registry-fetch": "^13.0.0" }, @@ -8255,6 +8366,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "aproba": "^2.0.0", "npm-registry-fetch": "^13.0.0" @@ -8268,6 +8380,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "@npmcli/git": "^3.0.0", "@npmcli/run-script": "^4.1.3", @@ -8284,6 +8397,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "engines": { "node": ">=12" } @@ -8293,6 +8407,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "agentkeepalive": "^4.2.1", "cacache": "^16.1.0", @@ -8320,6 +8435,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "brace-expansion": "^2.0.1" }, @@ -8332,6 +8448,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "yallist": "^4.0.0" }, @@ -8344,6 +8461,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "minipass": "^3.0.0" }, @@ -8356,6 +8474,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "minipass": "^3.1.6", "minipass-sized": "^1.0.3", @@ -8373,6 +8492,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "minipass": "^3.0.0" }, @@ -8385,6 +8505,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "jsonparse": "^1.3.1", "minipass": "^3.0.0" @@ -8395,6 +8516,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "minipass": "^3.0.0" }, @@ -8407,6 +8529,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "minipass": "^3.0.0" }, @@ -8419,6 +8542,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "minipass": "^3.0.0", "yallist": "^4.0.0" @@ -8432,6 +8556,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "bin": { "mkdirp": "bin/cmd.js" }, @@ -8444,6 +8569,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "chownr": "^2.0.0", "infer-owner": "^1.0.4", @@ -8457,19 +8583,22 @@ "version": "2.1.3", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/mute-stream": { "version": "0.0.8", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/negotiator": { "version": "0.6.3", "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">= 0.6" } @@ -8479,6 +8608,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "env-paths": "^2.2.0", "glob": "^7.1.4", @@ -8503,6 +8633,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -8513,6 +8644,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -8533,6 +8665,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -8545,6 +8678,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "abbrev": "1" }, @@ -8560,6 +8694,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "abbrev": "^1.0.0" }, @@ -8575,6 +8710,7 @@ "dev": true, "inBundle": true, "license": "BSD-2-Clause", + "peer": true, "dependencies": { "hosted-git-info": "^5.0.0", "is-core-module": "^2.8.1", @@ -8590,6 +8726,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "chalk": "^4.0.0" }, @@ -8602,6 +8739,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "npm-normalize-package-bin": "^2.0.0" }, @@ -8614,6 +8752,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "engines": { "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } @@ -8623,6 +8762,7 @@ "dev": true, "inBundle": true, "license": "BSD-2-Clause", + "peer": true, "dependencies": { "semver": "^7.1.1" }, @@ -8634,13 +8774,15 @@ "version": "1.0.1", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/npm-package-arg": { "version": "9.1.0", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "hosted-git-info": "^5.0.0", "proc-log": "^2.0.1", @@ -8656,6 +8798,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "glob": "^8.0.1", "ignore-walk": "^5.0.1", @@ -8674,6 +8817,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "engines": { "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } @@ -8683,6 +8827,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "npm-install-checks": "^5.0.0", "npm-normalize-package-bin": "^2.0.0", @@ -8698,6 +8843,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "engines": { "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } @@ -8707,6 +8853,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "npm-registry-fetch": "^13.0.1", "proc-log": "^2.0.0" @@ -8720,6 +8867,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "make-fetch-happen": "^10.0.6", "minipass": "^3.1.6", @@ -8737,13 +8885,15 @@ "version": "1.0.1", "dev": true, "inBundle": true, - "license": "BSD-2-Clause" + "license": "BSD-2-Clause", + "peer": true }, "node_modules/npm/node_modules/npmlog": { "version": "6.0.2", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "are-we-there-yet": "^3.0.0", "console-control-strings": "^1.1.0", @@ -8759,6 +8909,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "wrappy": "1" } @@ -8768,6 +8919,7 @@ "dev": true, "inBundle": true, "license": "(WTFPL OR MIT)", + "peer": true, "bin": { "opener": "bin/opener-bin.js" } @@ -8777,6 +8929,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "aggregate-error": "^3.0.0" }, @@ -8792,6 +8945,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "@npmcli/git": "^3.0.0", "@npmcli/installed-package-contents": "^1.0.7", @@ -8827,6 +8981,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "json-parse-even-better-errors": "^2.3.1", "just-diff": "^5.0.1", @@ -8841,6 +8996,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -8850,6 +9006,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" @@ -8863,6 +9020,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "engines": { "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } @@ -8872,6 +9030,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "funding": { "url": "https://github.com/sponsors/isaacs" } @@ -8881,6 +9040,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "funding": { "url": "https://github.com/sponsors/isaacs" } @@ -8889,13 +9049,15 @@ "version": "1.0.1", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/promise-retry": { "version": "2.0.1", "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "err-code": "^2.0.2", "retry": "^0.12.0" @@ -8909,6 +9071,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "read": "1" } @@ -8917,6 +9080,7 @@ "version": "0.12.0", "dev": true, "inBundle": true, + "peer": true, "bin": { "qrcode-terminal": "bin/qrcode-terminal.js" } @@ -8926,6 +9090,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "mute-stream": "~0.0.4" }, @@ -8938,6 +9103,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "engines": { "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } @@ -8947,6 +9113,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "glob": "^8.0.1", "json-parse-even-better-errors": "^2.3.1", @@ -8962,6 +9129,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "json-parse-even-better-errors": "^2.3.0", "npm-normalize-package-bin": "^1.0.1" @@ -8975,6 +9143,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "engines": { "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } @@ -8984,6 +9153,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -8998,6 +9168,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "debuglog": "^1.0.1", "dezalgo": "^1.0.0", @@ -9010,6 +9181,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">= 4" } @@ -9019,6 +9191,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "glob": "^7.1.3" }, @@ -9034,6 +9207,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -9044,6 +9218,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -9064,6 +9239,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -9089,20 +9265,23 @@ } ], "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/safer-buffer": { "version": "2.1.2", "dev": true, "inBundle": true, "license": "MIT", - "optional": true + "optional": true, + "peer": true }, "node_modules/npm/node_modules/semver": { "version": "7.3.7", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "lru-cache": "^6.0.0" }, @@ -9118,6 +9297,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "yallist": "^4.0.0" }, @@ -9129,19 +9309,22 @@ "version": "2.0.0", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/signal-exit": { "version": "3.0.7", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/smart-buffer": { "version": "4.2.0", "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "engines": { "node": ">= 6.0.0", "npm": ">= 3.0.0" @@ -9152,6 +9335,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "ip": "^2.0.0", "smart-buffer": "^4.2.0" @@ -9166,6 +9350,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "agent-base": "^6.0.2", "debug": "^4.3.3", @@ -9180,6 +9365,7 @@ "dev": true, "inBundle": true, "license": "Apache-2.0", + "peer": true, "dependencies": { "spdx-expression-parse": "^3.0.0", "spdx-license-ids": "^3.0.0" @@ -9189,13 +9375,15 @@ "version": "2.3.0", "dev": true, "inBundle": true, - "license": "CC-BY-3.0" + "license": "CC-BY-3.0", + "peer": true }, "node_modules/npm/node_modules/spdx-expression-parse": { "version": "3.0.1", "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "spdx-exceptions": "^2.1.0", "spdx-license-ids": "^3.0.0" @@ -9205,13 +9393,15 @@ "version": "3.0.11", "dev": true, "inBundle": true, - "license": "CC0-1.0" + "license": "CC0-1.0", + "peer": true }, "node_modules/npm/node_modules/ssri": { "version": "9.0.1", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "minipass": "^3.1.1" }, @@ -9224,6 +9414,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "safe-buffer": "~5.2.0" } @@ -9233,6 +9424,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -9247,6 +9439,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -9259,6 +9452,7 @@ "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -9271,6 +9465,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", @@ -9287,19 +9482,22 @@ "version": "0.2.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/tiny-relative-date": { "version": "1.3.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/treeverse": { "version": "2.0.0", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "engines": { "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } @@ -9309,6 +9507,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "unique-slug": "^3.0.0" }, @@ -9321,6 +9520,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "imurmurhash": "^0.1.4" }, @@ -9332,13 +9532,15 @@ "version": "1.0.2", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/npm/node_modules/validate-npm-package-license": { "version": "3.0.4", "dev": true, "inBundle": true, "license": "Apache-2.0", + "peer": true, "dependencies": { "spdx-correct": "^3.0.0", "spdx-expression-parse": "^3.0.0" @@ -9349,6 +9551,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "builtins": "^5.0.0" }, @@ -9360,13 +9563,15 @@ "version": "1.0.0", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/wcwidth": { "version": "1.0.1", "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "defaults": "^1.0.3" } @@ -9376,6 +9581,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "isexe": "^2.0.0" }, @@ -9391,6 +9597,7 @@ "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "string-width": "^1.0.2 || 2 || 3 || 4" } @@ -9399,13 +9606,15 @@ "version": "1.0.2", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/npm/node_modules/write-file-atomic": { "version": "4.0.2", "dev": true, "inBundle": true, "license": "ISC", + "peer": true, "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" @@ -9418,7 +9627,8 @@ "version": "4.0.0", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/object-assign": { "version": "4.1.1", diff --git a/src/clients/bucket/media/index.ts b/src/clients/bucket/media/index.ts index 0c3f721..5f58d19 100644 --- a/src/clients/bucket/media/index.ts +++ b/src/clients/bucket/media/index.ts @@ -48,6 +48,9 @@ export const mediaChainMethods = ( if (params.metadata) { data.append('metadata', JSON.stringify(params.metadata)); } + if (params.alt_text) { + data.append('alt_text', params.alt_text); + } if (params.trigger_webhook) { data.append('trigger_webhook', params.trigger_webhook.toString()); } diff --git a/src/types/media.types.ts b/src/types/media.types.ts index c50f7fc..d1bf32e 100644 --- a/src/types/media.types.ts +++ b/src/types/media.types.ts @@ -3,6 +3,7 @@ import { GenericObject } from './generic.types'; export type InsertMediaType = { media: any; folder?: string; + alt_text?: string; metadata?: GenericObject; trigger_webhook?: boolean; }; From 88319920a1b0a8d6293f34472ff112bd8d58298d Mon Sep 17 00:00:00 2001 From: Tony Spiro Date: Tue, 10 Sep 2024 08:24:45 -0700 Subject: [PATCH 2/2] edit: npm version --- .gitignore | 4 +++- package.json | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index fa758be..488b755 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,6 @@ .LSOverride node_modules -dist \ No newline at end of file +dist + +test.* \ No newline at end of file diff --git a/package.json b/package.json index c4945df..d53943f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cosmicjs/sdk", - "version": "1.0.11", + "version": "1.0.12", "description": "The official client module for Cosmic. This module helps you easily add dynamic content to your website or application using the Cosmic headless CMS.", "keywords": [ "headlesscms", @@ -63,4 +63,4 @@ "npx eslint --fix" ] } -} +} \ No newline at end of file