flagsmith-nodejs 1.1.0 → 1.1.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
@@ -1,4 +1,4 @@
1
- <img width="100%" src="https://raw.githubusercontent.com/SolidStateGroup/bullet-train-frontend/master/hero.png"/>
1
+ <img width="100%" src="https://github.com/Flagsmith/flagsmith/raw/main/static-files/hero.png"/>
2
2
 
3
3
  # Flagsmith NodeJS Client
4
4
 
package/flagsmith-core.js CHANGED
@@ -1,4 +1,6 @@
1
- const fetch = require('node-fetch');
1
+ let fetch = require('node-fetch');
2
+ // https://github.com/node-fetch/node-fetch/issues/450
3
+ if (typeof fetch.default !== "undefined") fetch = fetch.default
2
4
 
3
5
  module.exports = class FlagsmithCore {
4
6
  normalizeFlags(flags) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flagsmith-nodejs",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Flagsmith lets you manage features flags and remote config across web, mobile and server side applications. Deliver true Continuous Integration. Get builds out faster. Control who has access to new features.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -1,52 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <code_scheme name="Project" version="173">
3
- <HTMLCodeStyleSettings>
4
- <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
5
- <option name="HTML_KEEP_WHITESPACES_INSIDE" value="pre,textarea" />
6
- <option name="HTML_QUOTE_STYLE" value="Single" />
7
- <option name="HTML_ENFORCE_QUOTES" value="true" />
8
- <option name="HTML_NEWLINE_AFTER_LAST_ATTRIBUTE" value="When multiline" />
9
- </HTMLCodeStyleSettings>
10
- <JSCodeStyleSettings version="0">
11
- <option name="FORCE_SEMICOLON_STYLE" value="true" />
12
- <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
13
- <option name="USE_DOUBLE_QUOTES" value="false" />
14
- <option name="FORCE_QUOTE_STYlE" value="true" />
15
- <option name="ENFORCE_TRAILING_COMMA" value="Remove" />
16
- <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
17
- <option name="SPACES_WITHIN_IMPORTS" value="true" />
18
- </JSCodeStyleSettings>
19
- <TypeScriptCodeStyleSettings version="0">
20
- <option name="FORCE_SEMICOLON_STYLE" value="true" />
21
- <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
22
- <option name="USE_DOUBLE_QUOTES" value="false" />
23
- <option name="FORCE_QUOTE_STYlE" value="true" />
24
- <option name="ENFORCE_TRAILING_COMMA" value="Remove" />
25
- <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
26
- <option name="SPACES_WITHIN_IMPORTS" value="true" />
27
- </TypeScriptCodeStyleSettings>
28
- <VueCodeStyleSettings>
29
- <option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
30
- <option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
31
- </VueCodeStyleSettings>
32
- <codeStyleSettings language="HTML">
33
- <option name="SOFT_MARGINS" value="100" />
34
- <indentOptions>
35
- <option name="CONTINUATION_INDENT_SIZE" value="4" />
36
- </indentOptions>
37
- </codeStyleSettings>
38
- <codeStyleSettings language="JavaScript">
39
- <option name="SOFT_MARGINS" value="100" />
40
- </codeStyleSettings>
41
- <codeStyleSettings language="TypeScript">
42
- <option name="SOFT_MARGINS" value="100" />
43
- </codeStyleSettings>
44
- <codeStyleSettings language="Vue">
45
- <option name="SOFT_MARGINS" value="100" />
46
- <indentOptions>
47
- <option name="INDENT_SIZE" value="4" />
48
- <option name="TAB_SIZE" value="4" />
49
- </indentOptions>
50
- </codeStyleSettings>
51
- </code_scheme>
52
- </component>
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
- </state>
5
- </component>