Skip to content

Instantly share code, notes, and snippets.

@tpluscode
Last active March 20, 2023 10:36
Show Gist options
  • Save tpluscode/8d1bfc9737f82f5005a5849e42f8f297 to your computer and use it in GitHub Desktop.
Save tpluscode/8d1bfc9737f82f5005a5849e42f8f297 to your computer and use it in GitHub Desktop.
import default - node16
node_modules
import { NamedNode, Term } from 'rdf-js'
import type { MultiPointer } from 'clownface'
import TermSet from '@rdfjs/term-set'
export function findNodes(pointer: MultiPointer, shPath: MultiPointer | NamedNode): MultiPointer {
const terms: Term[] = []
return pointer.node([...new TermSet(terms)])
}
{
"name": "module-resolution-node16",
"main": "index.js",
"type": "module",
"scripts": {
"prepack": "npm run build",
"build": "tsc"
},
"dependencies": {
"@rdfjs/term-set": "^2.0.1"
},
"devDependencies": {
"@types/clownface": "^1.2.0",
"@types/rdfjs__term-set": "^2.0.2",
"typescript": "^5.0.2"
}
}
{
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Node16"
}
}
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@rdfjs/term-set@^2.0.1":
version "2.0.1"
resolved "https://registry.yarnpkg.com/@rdfjs/term-set/-/term-set-2.0.1.tgz#bbf406e0477c226e65753da2da0089cbbe847ab5"
integrity sha512-ZD8IwSY7tPpevs2iaQEsesAu8c7TO4GKHQHObbehUE4odKa9BuhuimdNuYwBoyVprTtHARaW6VW+0Jsu7ehD+Q==
dependencies:
"@rdfjs/to-ntriples" "^2.0.0"
"@rdfjs/to-ntriples@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@rdfjs/to-ntriples/-/to-ntriples-2.0.0.tgz#ad70822e2ddf068fd1291b505e5c678c17af7a30"
integrity sha512-nDhpfhx6W6HKsy4HjyLp3H1nbrX1CiUCWhWQwKcYZX1s9GOjcoQTwY7GUUbVec0hzdJDQBR6gnjxtENBDt482Q==
"@rdfjs/types@*":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@rdfjs/types/-/types-1.1.0.tgz#098f180b7cccb03bb416c7b4d03baaa9d480e36b"
integrity sha512-5zm8bN2/CC634dTcn/0AhTRLaQRjXDZs3QfcAsQKNturHT7XVWcKy/8p3P5gXl+YkZTAmy7T5M/LyiT/jbkENw==
dependencies:
"@types/node" "*"
"@types/clownface@^1.2.0":
version "1.5.2"
resolved "https://registry.yarnpkg.com/@types/clownface/-/clownface-1.5.2.tgz#9d71952cfc2368a1a45d5f2b367ce0652107e3fa"
integrity sha512-c/BLyUFSuzgmbQ0kBlxNf9HEkDdCk4tMxUxWjtGSpvLMXM3t5KrJabcGkDStmfzA+bHFHwHHikyWsZYVC1TuWw==
dependencies:
rdf-js "^4.0.2"
"@types/node@*":
version "18.15.3"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.3.tgz#f0b991c32cfc6a4e7f3399d6cb4b8cf9a0315014"
integrity sha512-p6ua9zBxz5otCmbpb5D3U4B5Nanw6Pk3PPyX05xnxbB/fRv71N7CPmORg7uAD5P70T0xmx1pzAx/FUfa5X+3cw==
"@types/rdfjs__term-set@^2.0.2":
version "2.0.2"
resolved "https://registry.yarnpkg.com/@types/rdfjs__term-set/-/rdfjs__term-set-2.0.2.tgz#d86f1e0c317a5f85469ab44d7dd249c1ad4e2971"
integrity sha512-B+emhIPEl+5+AjmjP92cI23Xo3FEMKnrPsv20exIe9S3hHShPZOZzO/55gsYQjizW1r9VWsLdH5AcaoM4C+AFA==
dependencies:
"@rdfjs/types" "*"
rdf-js@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/rdf-js/-/rdf-js-4.0.2.tgz#f01510528bbfc6e004012b71a8a533896c4c4c10"
integrity sha512-ApvlFa/WsQh8LpPK/6hctQwG06Z9ztQQGWVtrcrf9L6+sejHNXLPOqL+w7q3hF+iL0C4sv3AX1PUtGkLNzyZ0Q==
dependencies:
"@rdfjs/types" "*"
typescript@^5.0.2:
version "5.0.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.2.tgz#891e1a90c5189d8506af64b9ef929fca99ba1ee5"
integrity sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment