podns 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -12,8 +12,8 @@ const parser_js_1 = require("./parser.js");
12
12
  async function getPronouns(domain, silenceParseErrors = true) {
13
13
  const pronounsRecords = await (0, http_js_1.getPronounsRecords)(domain);
14
14
  let processed = [];
15
- for (let r in pronounsRecords) {
16
- const parsed = (0, parser_js_1.parseRecord)(r, silenceParseErrors);
15
+ for (let i in pronounsRecords) {
16
+ const parsed = (0, parser_js_1.parseRecord)(pronounsRecords[i], silenceParseErrors);
17
17
  if (parsed != null) {
18
18
  processed.push(parsed);
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "podns",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "author": "lumap <lumap@duck.com>",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,7 @@
1
+ import { test } from "vitest";
2
+ import getPronouns from "./"
3
+
4
+ test("get some and see what it outputs", async () => {
5
+ const pronouns = await getPronouns("mauve.beer")
6
+ console.log(pronouns)
7
+ })
package/src/index.ts CHANGED
@@ -12,8 +12,8 @@ export default async function getPronouns(domain: string, silenceParseErrors = t
12
12
  const pronounsRecords = await getPronounsRecords(domain);
13
13
 
14
14
  let processed: PronounRecord[] = []
15
- for (let r in pronounsRecords) {
16
- const parsed = parseRecord(r, silenceParseErrors)
15
+ for (let i in pronounsRecords) {
16
+ const parsed = parseRecord(pronounsRecords[i], silenceParseErrors)
17
17
  if (parsed != null) {
18
18
  processed.push(parsed)
19
19
  }
@@ -134,4 +134,4 @@ test("parse they/them is automatically plural", () => {
134
134
  assert.equal(parsed.pronouns.possessiveDeterminer, undefined)
135
135
  assert.equal(parsed.pronouns.possessivePronoun, undefined)
136
136
  assert.equal(parsed.pronouns.reflexive, undefined)
137
- })
137
+ })