@oscarpalmer/timer 0.1.0 → 0.2.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.
File without changes
package/package.json CHANGED
@@ -3,48 +3,48 @@
3
3
  "name": "Oscar Palmér",
4
4
  "url": "https://oscarpalmer.se"
5
5
  },
6
- "description": "A better timer?",
6
+ "description": "A better timer?",
7
7
  "devDependencies": {
8
- "@tsconfig/recommended": "^1.0.0",
9
- "@types/node": "^17.0.0",
10
- "@typescript-eslint/eslint-plugin": "^5.30.0",
11
- "@typescript-eslint/parser": "^5.30.0",
12
- "esbuild": "^0.14.0",
13
- "eslint": "^8.18.0",
14
- "eslint-config-xo": "^0.41.0",
15
- "eslint-config-xo-typescript": "^0.51.0",
16
- "typescript": "^4.7.0"
17
- },
18
- "eslintConfig": {
19
- "extends": [
20
- "xo",
21
- "xo-typescript/space"
22
- ]
23
- },
24
- "exports": {
25
- ".": {
26
- "import": "./dist/timer.js",
27
- "require": "./dist/timer.js"
28
- }
29
- },
8
+ "@tsconfig/recommended": "^1.0.0",
9
+ "@types/node": "^17.0.0",
10
+ "@typescript-eslint/eslint-plugin": "^5.30.0",
11
+ "@typescript-eslint/parser": "^5.30.0",
12
+ "esbuild": "^0.14.0",
13
+ "eslint": "^8.18.0",
14
+ "eslint-config-xo": "^0.41.0",
15
+ "eslint-config-xo-typescript": "^0.51.0",
16
+ "typescript": "^4.7.0"
17
+ },
18
+ "eslintConfig": {
19
+ "extends": [
20
+ "xo",
21
+ "xo-typescript/space"
22
+ ]
23
+ },
24
+ "exports": {
25
+ ".": {
26
+ "import": "./dist/timer.js",
27
+ "require": "./dist/timer.js"
28
+ }
29
+ },
30
30
  "jsdelivr": "dist/timer.js",
31
- "keywords": [
32
- "timer",
33
- "setTimeout",
34
- "setInterval",
35
- "requestAnimationFrame"
36
- ],
31
+ "keywords": [
32
+ "timer",
33
+ "setTimeout",
34
+ "setInterval",
35
+ "requestAnimationFrame"
36
+ ],
37
37
  "license": "MIT",
38
38
  "main": "dist/timer.js",
39
- "module": "dist/timer.js",
39
+ "module": "dist/timer.js",
40
40
  "name": "@oscarpalmer/timer",
41
41
  "repository": {
42
- "type": "git",
43
- "url": "git+https://github.com/oscarpalmer/timer.git"
44
- },
45
- "scripts": {
46
- "build": "esbuild ./src/index.ts --bundle --target=es2020 --platform=browser --outdir=dist --format=esm"
47
- },
48
- "unpkg": "dist/timer.js",
49
- "version": "0.1.0"
42
+ "type": "git",
43
+ "url": "git+https://github.com/oscarpalmer/timer.git"
44
+ },
45
+ "scripts": {
46
+ "build": "esbuild ./src/index.ts --bundle --target=es2020 --platform=browser --outfile=dist/timer.js --format=esm"
47
+ },
48
+ "unpkg": "dist/timer.js",
49
+ "version": "0.2.0"
50
50
  }
package/tsconfig.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
- "compilerOptions": {
3
- "allowSyntheticDefaultImports": true,
4
- "declaration": true,
5
- "forceConsistentCasingInFileNames": true,
6
- "lib": [
2
+ "compilerOptions": {
3
+ "allowSyntheticDefaultImports": true,
4
+ "declaration": true,
5
+ "forceConsistentCasingInFileNames": true,
6
+ "lib": [
7
7
  "DOM",
8
8
  "DOM.Iterable",
9
9
  "ES2020"
10
10
  ],
11
- "newLine": "lf",
12
- "noEmitOnError": true,
13
- "noFallthroughCasesInSwitch": true,
14
- "noImplicitOverride": true,
11
+ "newLine": "lf",
12
+ "noEmitOnError": true,
13
+ "noFallthroughCasesInSwitch": true,
14
+ "noImplicitOverride": true,
15
15
  "noImplicitReturns": true,
16
- "noPropertyAccessFromIndexSignature": true,
17
- "noUncheckedIndexedAccess": true,
16
+ "noPropertyAccessFromIndexSignature": true,
17
+ "noUncheckedIndexedAccess": true,
18
18
  "noUnusedLocals": true,
19
19
  "noUnusedParameters": true,
20
- "preserveConstEnums": true,
21
- "pretty": true,
22
- "resolveJsonModule": false,
23
- "skipLibCheck": true,
24
- "strict": true,
25
- "stripInternal": true,
26
- "target": "ES2020",
20
+ "preserveConstEnums": true,
21
+ "pretty": true,
22
+ "resolveJsonModule": false,
23
+ "skipLibCheck": true,
24
+ "strict": true,
25
+ "stripInternal": true,
26
+ "target": "ES2020",
27
27
  "useDefineForClassFields": true
28
- },
29
- "include": ["src/**/*"],
30
- "exclude": ["dist", "node_modules"]
28
+ },
29
+ "include": ["src/**/*"],
30
+ "exclude": ["dist", "node_modules"]
31
31
  }