Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
spencermountain committed Jan 15, 2025
2 parents 389681d + 53d40d0 commit a6e189d
Show file tree
Hide file tree
Showing 12 changed files with 170 additions and 42 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ _(these methods are on the main `nlp` object)_
- **[.money().currency()](https://observablehq.com/@spencermountain/compromise-values)** - which currency the money is in
- **[.fractions()](https://observablehq.com/@spencermountain/compromise-values)** - like '2/3rds' or 'one out of five'
- **[.fractions().parse()](https://observablehq.com/@spencermountain/compromise-values)** - get tokenized fraction
- **[.fractions().get()](https://observablehq.com/@spencermountain/compromise-values)** - simple numerator, denomenator data
- **[.fractions().get()](https://observablehq.com/@spencermountain/compromise-values)** - simple numerator, denominator data
- **[.fractions().json()](https://observablehq.com/@spencermountain/compromise-values)** - json method overloaded with fractions data
- **[.fractions().toDecimal()](https://observablehq.com/@spencermountain/compromise-values)** - '2/3' -> '0.66'
- **[.fractions().normalize()](https://observablehq.com/@spencermountain/compromise-values)** - 'four out of 10' -> '4/10'
Expand Down
25 changes: 25 additions & 0 deletions one/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "compromise-one",
"version": "14.14.3",
"description": "",
"type": "module",
"module": "./../src/one.js",
"main": "./../src/one.js",
"types": "./../types/one.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./../types/one/one.d.ts",
"default": "./../src/one.js"
},
"require": {
"types": "./../types/one.d.cts",
"default": "./../builds/one/compromise-one.cjs"
}
}
},
"author": "Spencer Kelly <[email protected]> (http://spencermounta.in)",
"license": "MIT",
"sideEffects": true
}
86 changes: 45 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,54 +11,54 @@
"types": "./types/three.d.ts",
"exports": {
".": {
"import": "./src/three.js",
"require": "./builds/three/compromise-three.cjs",
"types": "./types/three.d.ts"
"import": {
"types": "./types/three.d.ts",
"default": "./src/three.js"
},
"require": {
"types": "./types/three.d.cts",
"default": "./builds/three/compromise-three.cjs"
}
},
"./tokenize": {
"import": "./src/one.js",
"require": "./builds/one/compromise-one.cjs",
"types": "./types/one.d.ts"
"import": {
"types": "./types/one.d.ts",
"default": "./src/one.js"
},
"require": {
"types": "./types/one.d.cts",
"default": "./builds/one/compromise-one.cjs"
}
},
"./one": {
"import": "./src/one.js",
"require": "./builds/one/compromise-one.cjs",
"types": "./types/one.d.ts"
"import": {
"types": "./types/one.d.ts",
"default": "./src/one.js"
},
"require": {
"types": "./types/one.d.cts",
"default": "./builds/one/compromise-one.cjs"
}
},
"./two": {
"import": "./src/two.js",
"require": "./builds/two/compromise-two.cjs",
"types": "./types/two.d.ts"
"import": {
"types": "./types/two.d.ts",
"default": "./src/two.js"
},
"require": {
"types": "./types/two.d.cts",
"default": "./builds/two/compromise-two.cjs"
}
},
"./three": {
"import": "./src/three.js",
"require": "./builds/three/compromise-three.cjs",
"types": "./types/three.d.ts"
},
"./misc": {
"types": "./types/misc.d.ts"
},
"./view/one": {
"types": "./types/view/one.d.ts"
},
"./view/two": {
"types": "./types/view/two.d.ts"
},
"./view/three": {
"types": "./types/view/three.d.ts"
}
},
"typesVersions": {
"*": {
"one": [
"./types/one.d.ts"
],
"two": [
"./types/two.d.ts"
],
"three": [
"./types/three.d.ts"
]
"import": {
"types": "./types/three.d.ts",
"default": "./src/three.js"
},
"require": {
"types": "./types/three.d.cts",
"default": "./builds/three/compromise-three.cjs"
}
}
},
"repository": {
Expand Down Expand Up @@ -94,7 +94,11 @@
"files": [
"builds/",
"types/",
"src/"
"src/",
"tokenize/",
"one/",
"two/",
"three/"
],
"keywords": [
"nlp"
Expand Down
25 changes: 25 additions & 0 deletions three/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "compromise-three",
"version": "14.14.3",
"description": "",
"type": "module",
"module": "./../src/three.js",
"main": "./../src/three.js",
"types": "./../types/three.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./../types/three/three.d.ts",
"default": "./../src/three.js"
},
"require": {
"types": "./../types/three.d.cts",
"default": "./../builds/three/compromise-three.cjs"
}
}
},
"author": "Spencer Kelly <[email protected]> (http://spencermounta.in)",
"license": "MIT",
"sideEffects": true
}
25 changes: 25 additions & 0 deletions tokenize/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "compromise-tokenize",
"version": "14.14.3",
"description": "",
"type": "module",
"module": "./../src/one.js",
"main": "./../src/one.js",
"types": "./../types/one.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./../types/one/one.d.ts",
"default": "./../src/one.js"
},
"require": {
"types": "./../types/one.d.cts",
"default": "./../builds/one/compromise-one.cjs"
}
}
},
"author": "Spencer Kelly <[email protected]> (http://spencermounta.in)",
"license": "MIT",
"sideEffects": true
}
25 changes: 25 additions & 0 deletions two/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "compromise-two",
"version": "14.14.3",
"description": "",
"type": "module",
"module": "./../src/two.js",
"main": "./../src/two.js",
"types": "./../types/two.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./../types/two/two.d.ts",
"default": "./../src/two.js"
},
"require": {
"types": "./../types/two.d.cts",
"default": "./../builds/two/compromise-two.cjs"
}
}
},
"author": "Spencer Kelly <[email protected]> (http://spencermounta.in)",
"license": "MIT",
"sideEffects": true
}
4 changes: 4 additions & 0 deletions types/one.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import nlp from "./one.d";

export = nlp

4 changes: 4 additions & 0 deletions types/three.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import nlp from "./three.d";

export = nlp

4 changes: 4 additions & 0 deletions types/two.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import nlp from "./two.d";

export = nlp

4 changes: 4 additions & 0 deletions types/view/one.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import View from "./one.d";

export = View

4 changes: 4 additions & 0 deletions types/view/three.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Three from "./three.d";

export = Three

4 changes: 4 additions & 0 deletions types/view/two.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Two from "./two.d";

export = Two

0 comments on commit a6e189d

Please sign in to comment.