| declare const _default: { | ||
| author: string; | ||
| text: string; | ||
| }[]; | ||
| export default _default; |
+211
| // Via http://oaks.nvg.org/basho.html | ||
| // Thanks! | ||
| export default [ | ||
| { | ||
| author: "basho", | ||
| text: "None is travelling\nHere along this way but I,\nThis autumn evening." | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "The first day of the year:\nthoughts come - and there is loneliness;\nthe autumn dusk is here." | ||
| }, | ||
| { author: "basho", text: "An old pond\nA frog jumps in -\nSplash!" }, | ||
| { | ||
| author: "basho", | ||
| text: "Old dark sleepy pool ...\nquick unexpected\nfrog\nGoes plop! Watersplash!" | ||
| }, | ||
| { author: "basho", text: "Lightening -\nHeron's cry\nStabs the darkness" }, | ||
| { | ||
| author: "basho", | ||
| text: "Clouds come from time to time -\nand bring to men a chance to rest\nfrom looking at the moon." | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "In the cicada's cry\nThere's no sign that can foretell\nHow soon it must die." | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Poverty's child -\nhe starts to grind the rice,\nand gazes at the moon." | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Won't you come and see\nloneliness? Just one leaf\nfrom the kiri tree." | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Temple bells die out.\nThe fragrant blossoms remain.\nA perfect evening!" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Ballet in the air ...\ntwin butterflies\nuntil, twice white\nThey meet, they mate" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Black cloudbank broken\nscatters in the\nnight ... Now see\nMoon-lighted mountains!" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Seek on high bare trails\nsky-reflecting\nviolets...\nMountain-top jewels" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "For a lovely bowl\nlet us arrange these\nflowers...\nSince there is no rice" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Now that eyes of hawks\nin dusky night\nare darkened ...\nChirping of the quails" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "April's air stirs in\nwillow-leaves ...\na butterfly\nFloats and balances" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "In the sea-surf edge\nmingling with\nbright small shells ..\nBush-clover petals" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "The river\nGathering may rains\nfrom cold streamlets\nfor the sea ...\nMurmuring Mogami" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "White cloud of mist\nabove white\ncherry-blossoms ...\nDawn-shining mountains" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Twilight whippoorwill ...\nwhistle on,\nsweet deepener\nOf dark loneliness" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Mountain-rose petals\nfalling, falling,\nfalling now ...\nWaterfall music" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Ah me! I am one\nwho spends his little\nbreakfast\nMorning-glory gazing" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Seas are wild tonight ...\nstretching over\nSado Island\nSilent clouds of stars" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Why so scrawny, cat?\nstarving for fat fish\nor mice ...\nOr backyard love?" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Dewdrop, let me cleanse\nin your brief\nsweet waters ...\nThese dark hands of life" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Glorious the moon ...\ntherefore our thanks\ndark clouds\nCome to rest our necks" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Under cherry-trees\nsoup, the salad,\nfish and all ...\nSeasoned with petals" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Too curious flower\nwatching us pass,\nmet death ...\nOur hungry donkey" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Cloud of cherry-bloom ...\ntolling twilight\nbell ... Temple\nUeno? Asakura?" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Must springtime fade?\nthen cry all birds ...\nand fishes\nCold pale eyes pour tears" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Such utter silence!\neven the crickets'\nsinging ...\nMuffled by hot rocks" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Swallow in the dusk ...\nspare my little\nbuzzing friends\nAmong the flowers" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Reply:\nBright red pepper-pod ...\nit needs but shiny\nwings and look ...\nDarting dragon-fly!" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Wake! The sky is light!\nlet us to the road\nagain ...\nCompanion butterfly!" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Silent the old town ...\nthe scent of flowers\nfloating ...\nAnd evening bell" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Camellia-petal\nfell in silent dawn ...\nspilling\nA water-jewel" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "In the twilight rain\nthese brilliant-hued\nhibiscus ...\nA lovely sunset" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Lady butterfly\nperfumes her wings\nby floating\nOver the orchid" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Now the swinging bridge\nis quieted\nwith creepers ...\nLike our tendrilled life" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "The sea darkening ...\noh voices of the\nwild ducks\nCrying, whirling, white" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Nine times arising\nto see the moon ...\nwhose solemn pace\nMarks only midnight yet" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Here, where a thousand\ncaptains swore grand\nconquest ... Tall\nGrass their monument" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Now in sad autumn\nas I take my\ndarkening path ...\nA solitary bird" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Will we meet again\nhere at your\nflowering grave ...\nTwo white butterflies?" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Dry cheerful cricket\nchirping, keeps\nthe autumn gay ...\nContemptuous of frost" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "First white snow of fall\njust enough to bend\nthe leaves\nOf faded daffodils" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Carven gods long gone ...\ndead leaves alone\nforegather\nOn the temple porch" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Cold first winter rain ...\npoor monkey,\nyou too could use\nA little woven cape" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "No oil to read by ...\nI am off to bed\nbut ah! ...\nMy moonlit pillow" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "This snowy morning\nthat black crow\nI hate so much ...\nBut he's beautiful!" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "If there were fragrance\nthese heavy snow-\nflakes settling ...\nLilies on the rocks" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "See: surviving suns\nvisit the ancestral\ngrave ...\nBearded, with bent canes" | ||
| }, | ||
| { | ||
| author: "basho", | ||
| text: "Death-song:\nFever-felled half-way,\nmy dreams arose\nTo march again ...\nInto a hollow land" | ||
| } | ||
| ]; | ||
| //# sourceMappingURL=haikus.js.map |
| {"version":3,"file":"haikus.js","sourceRoot":"","sources":["../src/haikus.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,UAAU;AAEV,eAAe;IACb;QACE,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,sEAAsE;KAC7E;IACD;QACE,MAAM,EAAE,OAAO;QACf,IAAI,EACF,gGAAgG;KACnG;IACD,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,yCAAyC,EAAE;IACpE;QACE,MAAM,EAAE,OAAO;QACf,IAAI,EACF,2EAA2E;KAC9E;IACD,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,+CAA+C,EAAE;IAC1E;QACE,MAAM,EAAE,OAAO;QACf,IAAI,EACF,+FAA+F;KAClG;IACD;QACE,MAAM,EAAE,OAAO;QACf,IAAI,EACF,+EAA+E;KAClF;IACD;QACE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QACf,IAAI,EACF,8EAA8E;KACjF;IACD;QACE,MAAM,EAAE,OAAO;QACf,IAAI,EACF,sFAAsF;KACzF;IACD;QACE,MAAM,EAAE,OAAO;QACf,IAAI,EACF,+EAA+E;KAClF;IACD;QACE,MAAM,EAAE,OAAO;QACf,IAAI,EACF,8FAA8F;KACjG;CACF,CAAC"} |
| #!/usr/bin/env node | ||
| import "./preload.js"; |
+125
| #!/usr/bin/env node | ||
| import "./preload.js"; | ||
| import { evaluate, PipelineValue, PipelineError } from "basho-eval"; | ||
| import haikus from "./haikus.js"; | ||
| import { fileURLToPath } from "url"; | ||
| import { dirname } from "path"; | ||
| import * as fs from "fs"; | ||
| import path from "path"; | ||
| const __filename = fileURLToPath(import.meta.url); | ||
| const __dirname = dirname(__filename); | ||
| async function read(stream) { | ||
| const chunks = []; | ||
| for await (const chunk of stream) { | ||
| chunks.push(chunk); | ||
| } | ||
| return chunks.length ? Buffer.concat(chunks).toString("utf8") : undefined; | ||
| } | ||
| if (process.argv.length > 2) { | ||
| (async function run() { | ||
| const [major, minor, patch] = process.version | ||
| .substring(1) | ||
| .split(".") | ||
| .map(parseInt); | ||
| if (major < 11) { | ||
| console.log("Basho requires node version >= 11."); | ||
| process.exit(1); | ||
| } | ||
| //Remove import args from the beginning. | ||
| const firstArgs = (function remove(args) { | ||
| return args[0] === "--import" ? remove(args.slice(3)) : args; | ||
| })(process.argv.slice(2)); | ||
| if (firstArgs[0] === "-v" || firstArgs[0] === "--version") { | ||
| const pkg = path.join(__dirname, "../package.json"); | ||
| const packageJSON = JSON.parse(fs.readFileSync(pkg, "utf8")); | ||
| console.log(packageJSON.version); | ||
| process.exit(0); | ||
| } | ||
| else { | ||
| const printerror = firstArgs[0] === "--printerror"; | ||
| const ignoreerror = printerror || firstArgs[0] === "--ignoreerror"; | ||
| const stdinAsString = !process.stdin.isTTY | ||
| ? await read(process.stdin) | ||
| : undefined; | ||
| try { | ||
| const input = stdinAsString !== undefined | ||
| ? stdinAsString.replace(/\n$/, "").split("\n") | ||
| : []; | ||
| // Some of our args might have newlines. | ||
| // Especially when using Here Documents. | ||
| // So we split those into separate args. | ||
| const bashoArgs = process.argv | ||
| .slice(2) | ||
| .flatMap((x) => x.split("\n")) | ||
| .map((x) => x.trim()) | ||
| .filter((x) => x !== "") | ||
| .reduce((acc, x) => { | ||
| if (acc.bracketed) { | ||
| if (x === ")") { | ||
| return { | ||
| args: acc.args, | ||
| bracketed: false, | ||
| bracketStart: "", | ||
| }; | ||
| } | ||
| else { | ||
| const concatenated = acc.args.slice(-1)[0] + x; | ||
| return { | ||
| args: acc.args.slice(0, -1).concat(concatenated), | ||
| bracketed: true, | ||
| bracketStart: acc.bracketStart, | ||
| }; | ||
| } | ||
| } | ||
| else { | ||
| if (x === "(") { | ||
| return { | ||
| args: acc.args.concat(""), | ||
| bracketed: true, | ||
| bracketStart: acc.args.slice(-1)[0], | ||
| }; | ||
| } | ||
| else { | ||
| return { | ||
| args: acc.args.concat(x), | ||
| bracketed: false, | ||
| bracketStart: "", | ||
| }; | ||
| } | ||
| } | ||
| }, { args: [], bracketed: false, bracketStart: "" }); | ||
| if (bashoArgs.bracketed) { | ||
| console.log(`Bracket started after '${bashoArgs.bracketStart}' was not closed.`); | ||
| process.exit(1); | ||
| } | ||
| const output = await evaluate(bashoArgs.args, input, true, (x) => console.log(x), (x) => process.stdout.write(x.toString())); | ||
| for await (const item of output.result) { | ||
| if (item instanceof PipelineError) { | ||
| if (printerror) { | ||
| console.log(item.message); | ||
| console.log(item.error.toString()); | ||
| } | ||
| if (!ignoreerror) { | ||
| throw item.error; | ||
| } | ||
| } | ||
| else if (item instanceof PipelineValue) { | ||
| if (output.mustPrint) { | ||
| console.log(item.value); | ||
| } | ||
| } | ||
| } | ||
| process.exit(0); | ||
| } | ||
| catch (error) { | ||
| console.log(error.message); | ||
| process.exit(1); | ||
| } | ||
| } | ||
| })(); | ||
| } | ||
| else { | ||
| const haiku = haikus[Math.floor(Math.random() * haikus.length)]; | ||
| console.log(`${haiku.text}\n -${haiku.author}`); | ||
| } | ||
| //# sourceMappingURL=index.js.map |
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,KAAK,UAAU,IAAI,CAAC,MAAkB;IACpC,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,MAAM,EAAE;QAChC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACpB;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5E,CAAC;AAED,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;IAC3B,CAAC,KAAK,UAAU,GAAG;QACjB,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,OAAO,CAAC,OAAO;aAC1C,SAAS,CAAC,CAAC,CAAC;aACZ,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,QAAQ,CAAC,CAAC;QAEjB,IAAI,KAAK,GAAG,EAAE,EAAE;YACd,OAAO,CAAC,GAAG,CAA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iBACF;gBACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;aACjB;YAAC,OAAO,KAAU,EAAE;gBACnB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBAC3B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;aACjB;SACF;IACH,CAAC,CAAC,EAAE,CAAC;CACN;KAAM;IACL,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAChE,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;CACjD"} |
| "use strict"; | ||
| if (typeof Symbol.asyncIterator === "undefined") { | ||
| Symbol.asyncIterator = Symbol.for("Symbol.asyncIterator"); | ||
| } | ||
| //# sourceMappingURL=preload.js.map |
| {"version":3,"file":"preload.js","sourceRoot":"","sources":["../src/preload.ts"],"names":[],"mappings":";AAAA,IAAI,OAAO,MAAM,CAAC,aAAa,KAAK,WAAW,EAAE;IAC9C,MAAc,CAAC,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;CACpE"} |
+4
-4
| { | ||
| "name": "basho", | ||
| "version": "8.0.4", | ||
| "version": "8.0.5", | ||
| "main": "dist/index.js", | ||
@@ -20,9 +20,9 @@ "type": "module", | ||
| "dependencies": { | ||
| "basho-eval": "8.0.4" | ||
| "basho-eval": "^8.0.5" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/mocha": "^9.1.0", | ||
| "@types/node": "^17.0.10", | ||
| "@types/node": "^17.0.17", | ||
| "@types/should": "^13.0.0", | ||
| "mocha": "^9.1.4", | ||
| "mocha": "^9.2.0", | ||
| "rimraf": "^3.0.2", | ||
@@ -29,0 +29,0 @@ "should": "^13.2.3", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
38788
108.24%15
150%366
1642.86%2
Infinity%+ Added
- Removed
Updated