From c7af7ed650778b0057b3682bd32278fc07339b11 Mon Sep 17 00:00:00 2001 From: jem Date: Fri, 24 Apr 2020 18:04:25 +0200 Subject: [PATCH] some more npm magic --- package-lock.json | 21 ++++++++++++++++----- package.json | 1 + src/main/dda/masto_embed/app.cljs | 11 ++++++----- 3 files changed, 23 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2f4a053..da77b23 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,12 +25,14 @@ } }, "ajv": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", - "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", + "version": "6.12.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.2.tgz", + "integrity": "sha512-k+V+hzjm5q/Mr8ef/1Y9goCmlsK4I6Sm74teeyGvFk1XrOsbsKLjEdrvny42CZ+a8sXbk8KWpY/bDwS+FLL2UQ==", "requires": { - "co": "^4.6.0", - "json-stable-stringify": "^1.0.1" + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" } }, "ajv-keywords": { @@ -2117,6 +2119,15 @@ "string-width": "^2.0.0" }, "dependencies": { + "ajv": { + "version": "4.11.8", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", + "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", + "requires": { + "co": "^4.6.0", + "json-stable-stringify": "^1.0.1" + } + }, "ansi-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", diff --git a/package.json b/package.json index c462944..46b038a 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "source-map-support": "^0.5.19" }, "dependencies": { + "ajv": "^6.12.2", "mastodon-api": "^1.3.0" } } diff --git a/src/main/dda/masto_embed/app.cljs b/src/main/dda/masto_embed/app.cljs index 8c2177f..8b1e146 100644 --- a/src/main/dda/masto_embed/app.cljs +++ b/src/main/dda/masto_embed/app.cljs @@ -15,11 +15,12 @@ (let [config (js-obj "api_url" "https://social.meissa-gmbh.de/api/v1/" "access_token" "...") masto (new Mastodon config) rest-endpoint "accounts/:id/statuses" - id-config (js-obj "id" "2")] - (pprint - (go - (let [response (