Skip to content

Commit

Permalink
fix: import paths, again
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudiuCeia committed Jul 22, 2022
1 parent 6ffe1c8 commit ee3fec8
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 22 deletions.
2 changes: 1 addition & 1 deletion import_map.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"imports": {
"/combine": "https://deno.land/x/[email protected]/mod.ts"
"combine/": "https://deno.land/x/[email protected]/"
}
}
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
optional,
space,
anyChar,
} from "/combine";
} from "combine/mod.ts";
import { word, __, dot } from "./src/common.ts";
import { Entity } from "./src/Entity.ts";
import { Quantity, QuantityEntity } from "./src/Quantity.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/Email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
manyTill,
letter,
digit,
} from "/combine";
} from "combine/mod.ts";
import { EntityLanguage, __, dot } from "./common.ts";
import { ent, Entity } from "./Entity.ts";
import { URL } from "./URL.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/Entity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Context } from "/combine";
import { Context } from "combine/mod.ts";

export type Entity<Kind, Value> = {
value: Value;
Expand Down
8 changes: 4 additions & 4 deletions src/Institution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import {
many1,
manyTill,
peek,
sepBy1,
space,
either,
} from "/combine";
sepBy1,
space,
either,
} from "combine/mod.ts";
import { EntityLanguage, __, dot } from "./common.ts";
import { ent, Entity } from "./Entity.ts";
import { fuzzyCase } from "./parsers.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/Location.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { any, Context, createLanguage, map, Parser, str } from "/combine";
import { any, Context, createLanguage, map, Parser, str } from "combine/mod.ts";
import { EntityLanguage, __, dot } from "./common.ts";
import { ent, Entity } from "./Entity.ts";
import countries from "https://cdn.jsdelivr.net/gh/umpirsky/[email protected]/data/en_US/country.json" assert { type: "json" };
Expand Down
2 changes: 1 addition & 1 deletion src/Quantity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
many1,
optional,
signed,
} from "/combine";
} from "combine/mod.ts";
import { __, dot, EntityLanguage } from "./common.ts";
import { ent, Entity } from "./Entity.ts";
import { fuzzyCase } from "./parsers.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/Range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
either,
Parser,
optional,
} from "/combine";
} from "combine/mod.ts";
import { __, EntityLanguage } from "./common.ts";
import { ent, Entity } from "./Entity.ts";
import { Quantity, QuantityEntity } from "./Quantity.ts";
Expand Down
6 changes: 3 additions & 3 deletions src/Temperature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import {
map,
Parser,
Context,
space,
skip1,
} from "/combine";
space,
skip1,
} from "combine/mod.ts";
import { EntityLanguage, __ } from "./common.ts";
import { ent, Entity } from "./Entity.ts";
import { Quantity, QuantityEntity } from "./Quantity.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/Time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
minus,
peek,
skip1,
} from "/combine";
} from "combine/mod.ts";
import { __, dot, EntityLanguage, nonWord } from "./common.ts";
import { ent } from "./Entity.ts";
import { Entity } from "./Entity.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/URL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
peek,
number,
optional,
} from "/combine";
} from "combine/mod.ts";
import { EntityLanguage, dot } from "./common.ts";
import { ent, Entity } from "./Entity.ts";
import tlds from "https://cdn.jsdelivr.net/gh/incognico/list-of-top-level-domains/formats/json/tld-list.json" assert { type: "json" };
Expand Down
2 changes: 1 addition & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
seqNonNull,
skip1,
space,
} from "/combine";
} from "combine/mod.ts";
import { any } from "../../combine/src/combinators.ts";

export const dot = <T>(p: Parser<T>): Parser<T> =>
Expand Down
6 changes: 1 addition & 5 deletions src/parsers.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
Parser,
success,
failure,
} from "/combine";
import { Parser, success, failure } from "combine/mod.ts";

// Match string regardless of casing
export const fuzzyCase = (match: string): Parser<string> => {
Expand Down

0 comments on commit ee3fec8

Please sign in to comment.