Skip to content

Commit

Permalink
feat: prerequisite (#10)
Browse files Browse the repository at this point in the history
* feat: prerequisite

* chore: update test case

* 🔨chore: upgrade package version and fix code style

---------

Co-authored-by: frankzhaopeng <poryzhao@featureprobe.com>
  • Loading branch information
SSebo and frankzhaopeng authored Apr 10, 2023
1 parent 3b93ba6 commit ff0f2bc
Show file tree
Hide file tree
Showing 14 changed files with 202 additions and 106 deletions.
2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions docs/classes/FPUser.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>FPUser | FeatureProbe Server Side SDK for Node.js (2.0.1)</title><meta name="description" content="Documentation for FeatureProbe Server Side SDK for Node.js (2.0.1)"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>FPUser | FeatureProbe Server Side SDK for Node.js (2.1.0)</title><meta name="description" content="Documentation for FeatureProbe Server Side SDK for Node.js (2.1.0)"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
<div class="tsd-toolbar-contents container">
<div class="table-cell" id="tsd-search" data-base="..">
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
<div class="field">
<div id="tsd-toolbar-links"></div></div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">FeatureProbe Server Side SDK for Node.js (2.0.1)</a></div>
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">FeatureProbe Server Side SDK for Node.js (2.1.0)</a></div>
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
<div class="container container-main">
<div class="col-8 col-content">
<div class="tsd-page-title">
<ul class="tsd-breadcrumb">
<li><a href="../index.html">FeatureProbe Server Side SDK for Node.js (2.0.1)</a></li>
<li><a href="../index.html">FeatureProbe Server Side SDK for Node.js (2.1.0)</a></li>
<li><a href="FPUser.html">FPUser</a></li></ul>
<h1>Class FPUser</h1></div>
<section class="tsd-panel tsd-comment">
Expand All @@ -24,7 +24,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">FPUser</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/37a421e/src/FPUser.ts#L23">FPUser.ts:23</a></li></ul></aside>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/b225dc0/src/FPUser.ts#L23">FPUser.ts:23</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -69,7 +69,7 @@ <h5><code class="tsd-tag ts-flagOptional">Optional</code> stableRollout: <span c
</div></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="FPUser.html" class="tsd-signature-type" data-tsd-kind="Class">FPUser</a></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/37a421e/src/FPUser.ts#L33">FPUser.ts:33</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/b225dc0/src/FPUser.ts#L33">FPUser.ts:33</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="_attrs" class="tsd-anchor"></a>
Expand All @@ -81,12 +81,12 @@ <h4>Type declaration</h4>
<li class="tsd-parameter-index-signature">
<h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">string</span></h5></li></ul></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/37a421e/src/FPUser.ts#L26">FPUser.ts:26</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/b225dc0/src/FPUser.ts#L26">FPUser.ts:26</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="_key" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_key</span><a href="#_key" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">_key<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/37a421e/src/FPUser.ts#L25">FPUser.ts:25</a></li></ul></aside></section></section>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/b225dc0/src/FPUser.ts#L25">FPUser.ts:25</a></li></ul></aside></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Accessors</h2>
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="attrs" class="tsd-anchor"></a>
Expand All @@ -101,7 +101,7 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{ </spa
<li class="tsd-parameter-index-signature">
<h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">string</span></h5></li></ul><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/37a421e/src/FPUser.ts#L50">FPUser.ts:50</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/b225dc0/src/FPUser.ts#L50">FPUser.ts:50</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="key" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>key</span><a href="#key" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
Expand All @@ -112,7 +112,7 @@ <h3 class="tsd-anchor-link"><span>key</span><a href="#key" aria-label="Permalink
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/37a421e/src/FPUser.ts#L43">FPUser.ts:43</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/b225dc0/src/FPUser.ts#L43">FPUser.ts:43</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="extendAttrs" class="tsd-anchor"></a>
Expand All @@ -136,7 +136,7 @@ <h5>attrs: <span class="tsd-signature-symbol">{ </span><br/><span>    </span
<h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">string</span></h5></li></ul></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="FPUser.html" class="tsd-signature-type" data-tsd-kind="Class">FPUser</a></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/37a421e/src/FPUser.ts#L79">FPUser.ts:79</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/b225dc0/src/FPUser.ts#L79">FPUser.ts:79</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getAttr" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>get<wbr/>Attr</span><a href="#getAttr" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
Expand All @@ -149,7 +149,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h5>attrName: <span class="tsd-signature-type">string</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/37a421e/src/FPUser.ts#L86">FPUser.ts:86</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/b225dc0/src/FPUser.ts#L86">FPUser.ts:86</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="stableRollout" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>stable<wbr/>Rollout</span><a href="#stableRollout" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
Expand All @@ -166,7 +166,7 @@ <h5>key: <span class="tsd-signature-type">string</span></h5>
</div></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="FPUser.html" class="tsd-signature-type" data-tsd-kind="Class">FPUser</a></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/37a421e/src/FPUser.ts#L58">FPUser.ts:58</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/b225dc0/src/FPUser.ts#L58">FPUser.ts:58</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="with" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>with</span><a href="#with" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
Expand All @@ -189,7 +189,7 @@ <h5>attrValue: <span class="tsd-signature-type">string</span></h5>
</div></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="FPUser.html" class="tsd-signature-type" data-tsd-kind="Class">FPUser</a></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/37a421e/src/FPUser.ts#L69">FPUser.ts:69</a></li></ul></aside></li></ul></section></section></div>
<li>Defined in <a href="https://github.com/FeatureProbe/server-sdk-node/blob/b225dc0/src/FPUser.ts#L69">FPUser.ts:69</a></li></ul></aside></li></ul></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand All @@ -209,7 +209,7 @@ <h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
<div class="tsd-accordion-details">
<ul>
<li><a href="../index.html">Feature<wbr/>Probe <wbr/>Server <wbr/>Side SDK for <wbr/>Node.js (2.0.1)</a>
<li><a href="../index.html">Feature<wbr/>Probe <wbr/>Server <wbr/>Side SDK for <wbr/>Node.js (2.1.0)</a>
<ul></ul></li></ul></div></details></nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul>
Expand Down
Loading

0 comments on commit ff0f2bc

Please # to comment.