@mynameiskazim/storebadge 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  App Store, Google Play, and Microsoft Store badges in multiple languages — available as raw SVG/PNG files **and** as an npm package with a fully-typed JavaScript API.
4
4
 
5
- [![npm](https://img.shields.io/npm/v/storebadge)](https://www.npmjs.com/package/storebadge)
5
+ [![npm](https://img.shields.io/npm/v/storebadge)](https://www.npmjs.com/package/@mynameiskazim/storebadge)
6
6
 
7
7
  - [SVG files](https://github.com/mynameiskazim/storebadge/tree/main/badges)
8
8
 
@@ -28,16 +28,16 @@ pnpm add storebadge
28
28
  import { appStoreBadgeUrl, googlePlayBadgeUrl, microsoftBadgeUrl } from 'storebadge';
29
29
 
30
30
  appStoreBadgeUrl('en', 'black');
31
- // → 'https://cdn.jsdelivr.net/npm/storebadge/badges/appstore/appstore-black-en.svg'
31
+ // → 'https://cdn.jsdelivr.net/gh/mynameiskazim/storebadge/badges/appstore/appstore-black-en.svg'
32
32
 
33
33
  googlePlayBadgeUrl('tr');
34
- // → 'https://cdn.jsdelivr.net/npm/storebadge/badges/googleplay/googleplay-tr.svg'
34
+ // → 'https://cdn.jsdelivr.net/gh/mynameiskazim/storebadge/badges/googleplay/googleplay-tr.svg'
35
35
 
36
36
  googlePlayBadgeUrl('tr', 'png');
37
- // → 'https://cdn.jsdelivr.net/npm/storebadge/badges/googleplay/googleplay-tr.png'
37
+ // → 'https://cdn.jsdelivr.net/gh/mynameiskazim/storebadge/badges/googleplay/googleplay-tr.png'
38
38
 
39
39
  microsoftBadgeUrl('en-us', 'dark');
40
- // → 'https://cdn.jsdelivr.net/npm/storebadge/badges/microsoft/en-us-dark.svg'
40
+ // → 'https://cdn.jsdelivr.net/gh/mynameiskazim/storebadge/badges/microsoft/en-us-dark.svg'
41
41
  ```
42
42
 
43
43
  ### Get a local file path (relative to package root)
package/dist/index.d.mts CHANGED
@@ -35,7 +35,7 @@ declare function microsoftBadgePath(locale: MicrosoftLocale, theme?: MicrosoftTh
35
35
  *
36
36
  * @example
37
37
  * appStoreBadgeUrl('tr', 'black')
38
- * // → 'https://cdn.jsdelivr.net/npm/storebadge/badges/appstore/appstore-black-tr.svg'
38
+ * // → 'https://cdn.jsdelivr.net/gh/mynameiskazim/storebadge/badges/appstore/appstore-black-tr.svg'
39
39
  */
40
40
  declare function appStoreBadgeUrl(locale: AppStoreLocale, variant?: AppStoreVariant): string;
41
41
  /**
package/dist/index.d.ts CHANGED
@@ -35,7 +35,7 @@ declare function microsoftBadgePath(locale: MicrosoftLocale, theme?: MicrosoftTh
35
35
  *
36
36
  * @example
37
37
  * appStoreBadgeUrl('tr', 'black')
38
- * // → 'https://cdn.jsdelivr.net/npm/storebadge/badges/appstore/appstore-black-tr.svg'
38
+ * // → 'https://cdn.jsdelivr.net/gh/mynameiskazim/storebadge/badges/appstore/appstore-black-tr.svg'
39
39
  */
40
40
  declare function appStoreBadgeUrl(locale: AppStoreLocale, variant?: AppStoreVariant): string;
41
41
  /**
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ __export(index_exports, {
32
32
  setBaseUrl: () => setBaseUrl
33
33
  });
34
34
  module.exports = __toCommonJS(index_exports);
35
- var _baseUrl = "https://cdn.jsdelivr.net/npm/storebadge/badges";
35
+ var _baseUrl = "https://cdn.jsdelivr.net/gh/mynameiskazim/storebadge/badges";
36
36
  function setBaseUrl(url) {
37
37
  _baseUrl = url.replace(/\/$/, "");
38
38
  }
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/index.ts
2
- var _baseUrl = "https://cdn.jsdelivr.net/npm/storebadge/badges";
2
+ var _baseUrl = "https://cdn.jsdelivr.net/gh/mynameiskazim/storebadge/badges";
3
3
  function setBaseUrl(url) {
4
4
  _baseUrl = url.replace(/\/$/, "");
5
5
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@mynameiskazim/storebadge",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "App Store, Google Play, and Microsoft Store badges in multiple languages — SVG & PNG assets with a typed JavaScript API",
5
5
  "main": "dist/index.js",
6
- "module": "dist/index.esm.js",
6
+ "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
8
  "files": [
9
9
  "dist",
@@ -32,7 +32,7 @@
32
32
  "exports": {
33
33
  ".": {
34
34
  "types": "./dist/index.d.ts",
35
- "import": "./dist/index.esm.js",
35
+ "import": "./dist/index.mjs",
36
36
  "require": "./dist/index.js"
37
37
  },
38
38
  "./badges/*": "./badges/*"