@internetarchive/field-parsers
Advanced tools
Comparing version 0.1.4-alpha.1 to 0.1.4
@@ -1,10 +0,10 @@ | ||
export { BooleanParser } from './src/field-types/boolean.js'; | ||
export { Byte, ByteParser } from './src/field-types/byte.js'; | ||
export { DateParser } from './src/field-types/date.js'; | ||
export { Duration, DurationParser } from './src/field-types/duration.js'; | ||
export { MediaType, MediaTypeParser } from './src/field-types/mediatype.js'; | ||
export { NumberParser } from './src/field-types/number.js'; | ||
export { ListParser } from './src/field-types/list.js'; | ||
export { PageProgression, PageProgressionParser, } from './src/field-types/page-progression.js'; | ||
export { StringParser } from './src/field-types/string.js'; | ||
export { FieldParserInterface, FieldParserRawValue, } from './src/field-parser-interface.js'; | ||
export { BooleanParser } from './src/field-types/boolean'; | ||
export { Byte, ByteParser } from './src/field-types/byte'; | ||
export { DateParser } from './src/field-types/date'; | ||
export { Duration, DurationParser } from './src/field-types/duration'; | ||
export { MediaType, MediaTypeParser } from './src/field-types/mediatype'; | ||
export { NumberParser } from './src/field-types/number'; | ||
export { ListParser } from './src/field-types/list'; | ||
export { PageProgression, PageProgressionParser, } from './src/field-types/page-progression'; | ||
export { StringParser } from './src/field-types/string'; | ||
export { FieldParserInterface, FieldParserRawValue, } from './src/field-parser-interface'; |
@@ -1,10 +0,10 @@ | ||
export { BooleanParser } from './src/field-types/boolean.js'; | ||
export { ByteParser } from './src/field-types/byte.js'; | ||
export { DateParser } from './src/field-types/date.js'; | ||
export { DurationParser } from './src/field-types/duration.js'; | ||
export { MediaTypeParser } from './src/field-types/mediatype.js'; | ||
export { NumberParser } from './src/field-types/number.js'; | ||
export { ListParser } from './src/field-types/list.js'; | ||
export { PageProgressionParser, } from './src/field-types/page-progression.js'; | ||
export { StringParser } from './src/field-types/string.js'; | ||
export { BooleanParser } from './src/field-types/boolean'; | ||
export { ByteParser } from './src/field-types/byte'; | ||
export { DateParser } from './src/field-types/date'; | ||
export { DurationParser } from './src/field-types/duration'; | ||
export { MediaTypeParser } from './src/field-types/mediatype'; | ||
export { NumberParser } from './src/field-types/number'; | ||
export { ListParser } from './src/field-types/list'; | ||
export { PageProgressionParser, } from './src/field-types/page-progression'; | ||
export { StringParser } from './src/field-types/string'; | ||
//# sourceMappingURL=index.js.map |
@@ -0,0 +0,0 @@ export declare type FieldParserRawValue = string | number | boolean; |
export {}; | ||
//# sourceMappingURL=field-parser-interface.js.map |
@@ -1,2 +0,2 @@ | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface.js'; | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface'; | ||
export declare class BooleanParser implements FieldParserInterface<boolean> { | ||
@@ -3,0 +3,0 @@ static shared: BooleanParser; |
@@ -0,0 +0,0 @@ export class BooleanParser { |
@@ -1,2 +0,2 @@ | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface.js'; | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface'; | ||
/** | ||
@@ -3,0 +3,0 @@ * A Byte is a unit-specific `number`, in bytes. |
@@ -1,2 +0,2 @@ | ||
import { NumberParser } from './number.js'; | ||
import { NumberParser } from './number'; | ||
/** | ||
@@ -3,0 +3,0 @@ * The ByteParser is a unit-specific NumberParser |
@@ -1,2 +0,2 @@ | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface.js'; | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface'; | ||
export declare class DateParser implements FieldParserInterface<Date> { | ||
@@ -3,0 +3,0 @@ static shared: DateParser; |
@@ -0,0 +0,0 @@ export class DateParser { |
@@ -1,2 +0,2 @@ | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface.js'; | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Duration is a number in seconds |
@@ -0,0 +0,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface.js'; | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface'; | ||
export declare class ListParser<T> implements FieldParserInterface<T[]> { | ||
@@ -3,0 +3,0 @@ private parser; |
@@ -0,0 +0,0 @@ export class ListParser { |
@@ -1,3 +0,3 @@ | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface.js'; | ||
export declare type MediaType = 'account' | 'audio' | 'collection' | 'data' | 'etree' | 'image' | 'movies' | 'software' | 'texts' | 'web'; | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface'; | ||
export declare type MediaType = 'account' | 'audio' | 'collection' | 'data' | 'etree' | 'image' | 'movies' | 'search' | 'software' | 'texts' | 'web'; | ||
export declare class MediaTypeParser implements FieldParserInterface<MediaType> { | ||
@@ -4,0 +4,0 @@ static shared: MediaTypeParser; |
@@ -0,0 +0,0 @@ export class MediaTypeParser { |
@@ -1,2 +0,2 @@ | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface.js'; | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface'; | ||
export declare class NumberParser implements FieldParserInterface<number> { | ||
@@ -3,0 +3,0 @@ static shared: NumberParser; |
@@ -0,0 +0,0 @@ export class NumberParser { |
@@ -1,2 +0,2 @@ | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface.js'; | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface'; | ||
export declare type PageProgression = 'rl' | 'lr'; | ||
@@ -3,0 +3,0 @@ export declare class PageProgressionParser implements FieldParserInterface<PageProgression> { |
@@ -0,0 +0,0 @@ export class PageProgressionParser { |
@@ -1,2 +0,2 @@ | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface.js'; | ||
import { FieldParserInterface, FieldParserRawValue } from '../field-parser-interface'; | ||
export declare class StringParser implements FieldParserInterface<string> { | ||
@@ -3,0 +3,0 @@ static shared: StringParser; |
@@ -0,0 +0,0 @@ export class StringParser { |
export {}; |
import { expect } from '@open-wc/testing'; | ||
import { BooleanParser } from '../../src/field-types/boolean.js'; | ||
import { BooleanParser } from '../../src/field-types/boolean'; | ||
describe('BooleanParser', () => { | ||
@@ -4,0 +4,0 @@ it('can parse string number truthy', async () => { |
export {}; |
import { expect } from '@open-wc/testing'; | ||
import { ByteParser } from '../../src/field-types/byte.js'; | ||
import { ByteParser } from '../../src/field-types/byte'; | ||
describe('ByteParser', () => { | ||
@@ -4,0 +4,0 @@ it('can parse int strings', async () => { |
export {}; |
import { expect } from '@open-wc/testing'; | ||
import { DateParser } from '../../src/field-types/date.js'; | ||
import { DateParser } from '../../src/field-types/date'; | ||
describe('DateParser', () => { | ||
@@ -4,0 +4,0 @@ it('can parse date-only strings', async () => { |
export {}; |
import { expect } from '@open-wc/testing'; | ||
import { DurationParser } from '../../src/field-types/duration.js'; | ||
import { DurationParser } from '../../src/field-types/duration'; | ||
describe('DurationParser', () => { | ||
@@ -4,0 +4,0 @@ it('can parse mm:ss format', async () => { |
export {}; |
import { expect } from '@open-wc/testing'; | ||
import { ListParser } from '../../src/field-types/list.js'; | ||
import { StringParser } from '../../src/field-types/string.js'; | ||
import { NumberParser } from '../../src/field-types/number.js'; | ||
import { BooleanParser } from '../../src/field-types/boolean.js'; | ||
import { ListParser } from '../../src/field-types/list'; | ||
import { StringParser } from '../../src/field-types/string'; | ||
import { NumberParser } from '../../src/field-types/number'; | ||
import { BooleanParser } from '../../src/field-types/boolean'; | ||
describe('ListParser', () => { | ||
@@ -7,0 +7,0 @@ it('can parse a list of strings with commas', async () => { |
export {}; |
import { expect } from '@open-wc/testing'; | ||
import { MediaTypeParser } from '../../src/field-types/mediatype.js'; | ||
import { MediaTypeParser } from '../../src/field-types/mediatype'; | ||
describe('MediaTypeParser', () => { | ||
@@ -4,0 +4,0 @@ it('can parse mediatypes', async () => { |
export {}; |
import { expect } from '@open-wc/testing'; | ||
import { NumberParser } from '../../src/field-types/number.js'; | ||
import { NumberParser } from '../../src/field-types/number'; | ||
describe('NumberParser', () => { | ||
@@ -4,0 +4,0 @@ it('can parse int strings', async () => { |
import { expect } from '@open-wc/testing'; | ||
import { PageProgressionParser } from '../../src/field-types/page-progression.js'; | ||
import { PageProgressionParser } from '../../src/field-types/page-progression'; | ||
describe('PageProgressionParser', () => { | ||
@@ -4,0 +4,0 @@ it('can parse page progression', async () => { |
export {}; |
import { expect } from '@open-wc/testing'; | ||
import { StringParser } from '../../src/field-types/string.js'; | ||
import { StringParser } from '../../src/field-types/string'; | ||
describe('StringParser', () => { | ||
@@ -4,0 +4,0 @@ it('can parse strings', async () => { |
20
index.ts
@@ -1,16 +0,16 @@ | ||
export { BooleanParser } from './src/field-types/boolean.js'; | ||
export { Byte, ByteParser } from './src/field-types/byte.js'; | ||
export { DateParser } from './src/field-types/date.js'; | ||
export { Duration, DurationParser } from './src/field-types/duration.js'; | ||
export { MediaType, MediaTypeParser } from './src/field-types/mediatype.js'; | ||
export { NumberParser } from './src/field-types/number.js'; | ||
export { ListParser } from './src/field-types/list.js'; | ||
export { BooleanParser } from './src/field-types/boolean'; | ||
export { Byte, ByteParser } from './src/field-types/byte'; | ||
export { DateParser } from './src/field-types/date'; | ||
export { Duration, DurationParser } from './src/field-types/duration'; | ||
export { MediaType, MediaTypeParser } from './src/field-types/mediatype'; | ||
export { NumberParser } from './src/field-types/number'; | ||
export { ListParser } from './src/field-types/list'; | ||
export { | ||
PageProgression, | ||
PageProgressionParser, | ||
} from './src/field-types/page-progression.js'; | ||
export { StringParser } from './src/field-types/string.js'; | ||
} from './src/field-types/page-progression'; | ||
export { StringParser } from './src/field-types/string'; | ||
export { | ||
FieldParserInterface, | ||
FieldParserRawValue, | ||
} from './src/field-parser-interface.js'; | ||
} from './src/field-parser-interface'; |
{ | ||
"version": "0.1.4-alpha.1", | ||
"version": "0.1.4", | ||
"name": "@internetarchive/field-parsers", | ||
@@ -10,3 +10,2 @@ "description": "Field parsers for Internet Archive metadata fields.", | ||
"types": "dist/index.d.ts", | ||
"type": "module", | ||
"publishConfig": { | ||
@@ -13,0 +12,0 @@ "access": "public" |
@@ -0,0 +0,0 @@ [![Build Status](https://travis-ci.com/internetarchive/iaux-field-parsers.svg?branch=master)](https://travis-ci.com/internetarchive/iaux-field-parsers) [![codecov](https://codecov.io/gh/internetarchive/iaux-field-parsers/branch/master/graph/badge.svg)](https://codecov.io/gh/internetarchive/iaux-field-parsers) |
@@ -0,0 +0,0 @@ export type FieldParserRawValue = string | number | boolean; |
import { | ||
FieldParserInterface, | ||
FieldParserRawValue, | ||
} from '../field-parser-interface.js'; | ||
} from '../field-parser-interface'; | ||
@@ -6,0 +6,0 @@ export class BooleanParser implements FieldParserInterface<boolean> { |
import { | ||
FieldParserInterface, | ||
FieldParserRawValue, | ||
} from '../field-parser-interface.js'; | ||
import { NumberParser } from './number.js'; | ||
} from '../field-parser-interface'; | ||
import { NumberParser } from './number'; | ||
@@ -7,0 +7,0 @@ /** |
import { | ||
FieldParserInterface, | ||
FieldParserRawValue, | ||
} from '../field-parser-interface.js'; | ||
} from '../field-parser-interface'; | ||
@@ -6,0 +6,0 @@ export class DateParser implements FieldParserInterface<Date> { |
import { | ||
FieldParserInterface, | ||
FieldParserRawValue, | ||
} from '../field-parser-interface.js'; | ||
} from '../field-parser-interface'; | ||
@@ -6,0 +6,0 @@ /** |
import { | ||
FieldParserInterface, | ||
FieldParserRawValue, | ||
} from '../field-parser-interface.js'; | ||
} from '../field-parser-interface'; | ||
@@ -6,0 +6,0 @@ export class ListParser<T> implements FieldParserInterface<T[]> { |
import { | ||
FieldParserInterface, | ||
FieldParserRawValue, | ||
} from '../field-parser-interface.js'; | ||
} from '../field-parser-interface'; | ||
@@ -14,2 +14,3 @@ export type MediaType = | ||
| 'movies' | ||
| 'search' | ||
| 'software' | ||
@@ -16,0 +17,0 @@ | 'texts' |
import { | ||
FieldParserInterface, | ||
FieldParserRawValue, | ||
} from '../field-parser-interface.js'; | ||
} from '../field-parser-interface'; | ||
@@ -6,0 +6,0 @@ export class NumberParser implements FieldParserInterface<number> { |
import { | ||
FieldParserInterface, | ||
FieldParserRawValue, | ||
} from '../field-parser-interface.js'; | ||
} from '../field-parser-interface'; | ||
@@ -6,0 +6,0 @@ export type PageProgression = 'rl' | 'lr'; |
import { | ||
FieldParserInterface, | ||
FieldParserRawValue, | ||
} from '../field-parser-interface.js'; | ||
} from '../field-parser-interface'; | ||
@@ -6,0 +6,0 @@ export class StringParser implements FieldParserInterface<string> { |
import { expect } from '@open-wc/testing'; | ||
import { BooleanParser } from '../../src/field-types/boolean.js'; | ||
import { BooleanParser } from '../../src/field-types/boolean'; | ||
@@ -4,0 +4,0 @@ describe('BooleanParser', () => { |
import { expect } from '@open-wc/testing'; | ||
import { ByteParser } from '../../src/field-types/byte.js'; | ||
import { ByteParser } from '../../src/field-types/byte'; | ||
@@ -4,0 +4,0 @@ describe('ByteParser', () => { |
import { expect } from '@open-wc/testing'; | ||
import { DateParser } from '../../src/field-types/date.js'; | ||
import { DateParser } from '../../src/field-types/date'; | ||
@@ -4,0 +4,0 @@ describe('DateParser', () => { |
import { expect } from '@open-wc/testing'; | ||
import { DurationParser } from '../../src/field-types/duration.js'; | ||
import { DurationParser } from '../../src/field-types/duration'; | ||
@@ -4,0 +4,0 @@ describe('DurationParser', () => { |
import { expect } from '@open-wc/testing'; | ||
import { ListParser } from '../../src/field-types/list.js'; | ||
import { StringParser } from '../../src/field-types/string.js'; | ||
import { NumberParser } from '../../src/field-types/number.js'; | ||
import { BooleanParser } from '../../src/field-types/boolean.js'; | ||
import { ListParser } from '../../src/field-types/list'; | ||
import { StringParser } from '../../src/field-types/string'; | ||
import { NumberParser } from '../../src/field-types/number'; | ||
import { BooleanParser } from '../../src/field-types/boolean'; | ||
@@ -7,0 +7,0 @@ describe('ListParser', () => { |
import { expect } from '@open-wc/testing'; | ||
import { MediaTypeParser } from '../../src/field-types/mediatype.js'; | ||
import { MediaTypeParser } from '../../src/field-types/mediatype'; | ||
@@ -4,0 +4,0 @@ describe('MediaTypeParser', () => { |
import { expect } from '@open-wc/testing'; | ||
import { NumberParser } from '../../src/field-types/number.js'; | ||
import { NumberParser } from '../../src/field-types/number'; | ||
@@ -4,0 +4,0 @@ describe('NumberParser', () => { |
import { expect } from '@open-wc/testing'; | ||
import { PageProgressionParser } from '../../src/field-types/page-progression.js'; | ||
import { PageProgressionParser } from '../../src/field-types/page-progression'; | ||
@@ -4,0 +4,0 @@ describe('PageProgressionParser', () => { |
import { expect } from '@open-wc/testing'; | ||
import { StringParser } from '../../src/field-types/string.js'; | ||
import { StringParser } from '../../src/field-types/string'; | ||
@@ -4,0 +4,0 @@ describe('StringParser', () => { |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1463
0
150382
No