From ba047421e1f363c17e1d8fdaed54b07073810ac0 Mon Sep 17 00:00:00 2001 From: Austin Akers Date: Fri, 8 May 2026 14:31:23 -0400 Subject: [PATCH] added package.json updated resources.js --- package.json | 23 +++++++++++++++++++++++ resources.js | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..d84c724 --- /dev/null +++ b/package.json @@ -0,0 +1,23 @@ +{ + "name": "caching-guide-example", + "version": "1.0.0", + "description": "This repository is intended for use alongside the Harper Learn [\"Developers / Caching with Harper\"](https//docs.harperdb.io/learn/developers/caching-with-harper) guide.", + "homepage": "https://github.com/HarperFast/caching-guide-example#readme", + "bugs": { + "url": "https://github.com/HarperFast/caching-guide-example/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/HarperFast/caching-guide-example.git" + }, + "license": "Apache-2.0", + "author": "HarperDB Inc.", + "type": "module", + "main": "resources.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "dependencies": { + "harper": "^5.0.11" + } +} diff --git a/resources.js b/resources.js index 73e28b5..ada8e1b 100644 --- a/resources.js +++ b/resources.js @@ -1,3 +1,5 @@ +import { Resource, tables } from 'harper'; + class JokeAPI extends Resource { async get() { const id = this.getId();