fnapi-js 1.1.1 → 1.1.3

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
@@ -34,15 +34,18 @@ const searchOptions = new SearchOptions()
34
34
  .setRarity('epic')
35
35
  .setMatchMethod(Enums.matchMethod.contains());
36
36
 
37
- const cosmetics = await fnApi.cosmetics.searchCosmetics(searchOptions);
37
+ const cosmetics = await fnApi.cosmetics.search(searchOptions);
38
38
 
39
39
  // Get creator code
40
40
  const creatorCode = await fnApi.sac.get('code');
41
41
 
42
42
  // Get AES keys
43
- const aesKeys = await fnApi.aes.getKeys();
43
+ const aesKeys = await fnApi.aes.get();
44
44
  ```
45
45
 
46
+ ## Check out the docs
47
+ - [Documentation](https://github.com/AjaxFNC-YT/fnapi-js/blob/main/src/docs/DOCUMENTATION.md)
48
+
46
49
  ## Available Endpoints
47
50
 
48
51
  - Stats
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fnapi-js",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "Unofficial API Wrapper for https://fortnite-api.com/",
5
5
  "main": "src/index.js",
6
6
  "types": "index.d.ts",
@@ -1,4 +1,4 @@
1
- import RequestFlags from '../enums/requestFlags.js';
1
+ import RequestFlags from '../enums/RequestFlags.js';
2
2
  import SearchOptions from '../types/SearchOptions.js';
3
3
 
4
4
  class Cosmetics {
@@ -1,4 +1,4 @@
1
- import RequestFlags from '../enums/requestFlags.js';
1
+ import RequestFlags from '../enums/RequestFlags.js';
2
2
  import SearchOptions from '../types/SearchOptions.js';
3
3
 
4
4
  class Misc {
@@ -49,7 +49,7 @@ class CosmeticType {
49
49
  backendValue: 'VehicleCosmetics_Skin'
50
50
  },
51
51
  MUSICPACK: {
52
- value: 'lobby music',
52
+ value: 'music',
53
53
  backendValue: 'AthenaMusicPack'
54
54
  },
55
55
  VEHICLES_WHEEL: {
@@ -165,7 +165,7 @@ class CosmeticType {
165
165
  static backpack() {
166
166
  return this.TYPES.BACKPACK.value;
167
167
  }
168
-
168
+
169
169
  static vehicleskin() {
170
170
  return this.TYPES.VEHICLES_SKIN.value;
171
171
  }
package/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import ApiClient from './client/ApiClient.js';
2
2
  import Response from './http/Response.js';
3
- import RequestFlags from './enums/requestFlags.js';
3
+ import RequestFlags from './enums/RequestFlags.js';
4
4
  import Enums from './utils/Enums.js';
5
5
  import SearchOptions from './types/SearchOptions.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import CosmeticType from '../enums/CosmeticType.js';
2
2
  import Language from '../enums/Language.js';
3
- import RequestFlags from '../enums/requestFlags.js';
3
+ import RequestFlags from '../enums/RequestFlags.js';
4
4
  import MatchMethod from '../enums/MatchMethod.js';
5
5
  import AccountType from '../enums/AccountType.js';
6
6
  import StatsImage from '../enums/StatsImage.js';