@naverpay/device-info 0.0.2 → 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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @naverpay/device-info
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - dcef07e: 2024-04-04 기기정보 업데이트
8
+
9
+ ## 1.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - 97fa2fd: README.md 작성
14
+
3
15
  ## 0.0.2
4
16
 
5
17
  ### Patch Changes
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # @naverpay/device-info
2
+
3
+ 디바이스ID를 사용자에게 익숙한 모델명으로 변경하기 위한 라이브러리입니다.
4
+
5
+ - iOS 는 `Identifier` 를 `Generation` 로 맵핑합니다.
6
+ - 안드로이드는 `Model` 을 `Marketing Name` 으로 맵핑합니다.
7
+
8
+ 아래 두 문서를 기반으로 정보를 수집하며 매주 월요일마다 업데이트됩니다.
9
+ - https://storage.googleapis.com/play_public/supported_devices.html
10
+ - https://theapplewiki.com/wiki/Models
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ npm install --save @naverpay/device-info
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ ```javascript
21
+ import iOSDeviceInfo from '@naverpay/device-info/ios.json'
22
+ import androidDeviceInfo from '@naverpay/device-info/aos.json'
23
+
24
+ console.log(iosDeviceInfo['iPhone15,4']) // "iPhone 15"
25
+ console.log(androidDeviceInfo['SM-S901B']) // "Galaxy S22"
26
+ ```