@thednp/shorty 2.0.0-alpha12 → 2.0.0-alpha14

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,17 @@
1
1
  {
2
2
  "name": "@thednp/shorty",
3
- "version": "2.0.0alpha12",
3
+ "version": "2.0.0alpha14",
4
4
  "description": "TypeScript shorties for the web",
5
- "source": "src/index.ts",
6
- "main": "dist/shorty.js",
7
- "module": "dist/shorty.cjs",
8
- "esnext": "dist/shorty.mjs",
9
- "types": "dist/shorty.d.ts",
5
+ "source": "./src/index.ts",
6
+ "main": "./dist/shorty.js",
7
+ "module": "./dist/shorty.mjs",
8
+ "types": "./dist/shorty.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "require": "./dist/shorty.cjs",
12
+ "import": "./dist/shorty.mjs"
13
+ }
14
+ },
10
15
  "scripts": {
11
16
  "pre-test": "npm run clean-coverage",
12
17
  "test": "npm run pre-test && npx cypress run",
@@ -39,23 +44,23 @@
39
44
  },
40
45
  "homepage": "https://github.com/thednp/shorty",
41
46
  "devDependencies": {
42
- "@bahmutov/cypress-esbuild-preprocessor": "^2.1.5",
47
+ "@bahmutov/cypress-esbuild-preprocessor": "^2.2.0",
43
48
  "@cypress/code-coverage": "^3.10.0",
44
49
  "@types/istanbul-lib-instrument": "^1.7.4",
45
- "@typescript-eslint/eslint-plugin": "^5.47.1",
46
- "@typescript-eslint/parser": "^5.47.1",
47
- "cypress": "^12.4.1",
50
+ "@typescript-eslint/eslint-plugin": "^5.55.0",
51
+ "@typescript-eslint/parser": "^5.55.0",
52
+ "cypress": "^12.8.1",
48
53
  "dts-bundle-generator": "^7.2.0",
49
- "eslint": "^8.30.0",
50
- "eslint-plugin-jsdoc": "^39.6.4",
54
+ "eslint": "^8.36.0",
55
+ "eslint-plugin-jsdoc": "^40.0.3",
51
56
  "eslint-plugin-prefer-arrow": "^1.2.3",
52
57
  "eslint-plugin-prettier": "^4.2.1",
53
58
  "istanbul-lib-coverage": "^3.2.0",
54
59
  "istanbul-lib-instrument": "^5.2.1",
55
60
  "nyc": "^15.1.0",
56
- "prettier": "^2.8.3",
57
- "rimraf": "^3.0.2",
58
- "typescript": "^4.9.4",
59
- "vite": "^4.0.4"
61
+ "prettier": "^2.8.4",
62
+ "rimraf": "^4.4.0",
63
+ "typescript": "^5.0.2",
64
+ "vite": "^4.2.0"
60
65
  }
61
66
  }
package/src/misc/data.ts CHANGED
@@ -8,6 +8,7 @@ const componentData = new Map<string, Map<HTMLElement, any>>();
8
8
  * @see https://github.com/thednp/bootstrap.native/blob/master/src/components/base-component.js
9
9
  */
10
10
  const Data = {
11
+ data: componentData,
11
12
  /**
12
13
  * Sets web components data.
13
14
  *
package/vite.config.ts CHANGED
@@ -25,8 +25,6 @@ export default defineConfig({
25
25
  formats: ['es', 'cjs', 'iife'],
26
26
  fileName: (format) => fileName[format],
27
27
  },
28
- target: 'ESNext',
29
28
  sourcemap: true,
30
- minify: true
31
29
  },
32
30
  });