timezone-soft 1.2.0 → 1.4.0

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/package.json CHANGED
@@ -1,12 +1,21 @@
1
1
  {
2
2
  "name": "timezone-soft",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "author": "spencermountain",
5
5
  "description": "interpret abbreviated and informal timezone names",
6
- "main": "builds/timezone-soft.js",
6
+ "main": "builds/timezone-soft.cjs",
7
7
  "module": "builds/timezone-soft.mjs",
8
- "unpkg": "builds/timezone-soft.min.js",
8
+ "unpkg": "builds/timezone-soft.min.cjs",
9
9
  "types": "types/index.d.ts",
10
+ "type": "module",
11
+ "sideEffects": false,
12
+ "exports": {
13
+ ".": {
14
+ "require": "./builds/timezone-soft.cjs",
15
+ "import": "./builds/timezone-soft.mjs",
16
+ "default": "./builds/timezone-soft.cjs"
17
+ }
18
+ },
10
19
  "scripts": {
11
20
  "watch": "amble ./scratch.js",
12
21
  "pack": "node ./scripts/pack.js",
@@ -32,25 +41,17 @@
32
41
  "tabWidth": 2,
33
42
  "semi": false,
34
43
  "singleQuote": true,
35
- "printWidth": 100
36
- },
37
- "dependencies": {
38
- "efrt-unpack": "2.2.0"
44
+ "printWidth": 120
39
45
  },
40
46
  "devDependencies": {
41
- "efrt": "2.2.2",
42
- "@babel/core": "7.13.8",
43
- "@babel/preset-env": "7.13.9",
47
+ "@rollup/plugin-node-resolve": "13.3.0",
44
48
  "amble": "1.3.0",
45
- "rollup": "2.40.0",
46
- "rollup-plugin-babel": "4.4.0",
47
- "rollup-plugin-commonjs": "10.1.0",
48
- "rollup-plugin-json": "^4.0.0",
49
- "rollup-plugin-node-resolve": "5.2.0",
49
+ "efrt": "2.7.0",
50
+ "rollup": "2.77.3",
50
51
  "rollup-plugin-terser": "7.0.2",
51
- "spacetime": "6.13.0",
52
- "tap-dancer": "0.3.1",
53
- "tape": "5.2.2"
52
+ "spacetime": "7.1.4",
53
+ "tap-dancer": "0.3.4",
54
+ "tape": "5.5.3"
54
55
  },
55
56
  "license": "MIT"
56
- }
57
+ }
package/types/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  export interface TimeZoneInfo {
3
3
  name: string;
4
- abbrev: string;
4
+ abbr: string;
5
5
  }
6
6
 
7
7
  export interface DisplayFormat {
@@ -11,4 +11,4 @@ export interface DisplayFormat {
11
11
  }
12
12
 
13
13
  /** interpret timezone names */
14
- export default function timezoneSoft(tz:string): DisplayFormat[]
14
+ export default function timezoneSoft(tz:string): DisplayFormat[]