@jitsi/js-utils
Advanced tools
@@ -15,7 +15,13 @@ name: "AutoPublish" | ||
| - name: "Checkout source code" | ||
| uses: "actions/checkout@v2" | ||
| uses: "actions/checkout@v3" | ||
| - name: "Automated Release" | ||
| uses: "jitsi/gh-action-autopublish@master" | ||
| uses: "phips28/gh-action-bump-version@master" | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: '16' | ||
| registry-url: 'https://registry.npmjs.org' | ||
| - run: npm publish --access public | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |
@@ -135,2 +135,19 @@ import EventEmitter from 'events'; | ||
| /** | ||
| * Switch between window.localStorage and DummyLocalStorage. | ||
| */ | ||
| setLocalStorageDisabled(value) { | ||
| this._localStorageDisabled = value; | ||
| try { | ||
| this._storage = value ? new DummyLocalStorage() : window.localStorage; | ||
| } catch (ignore) { | ||
| // localStorage throws an exception. | ||
| } | ||
| if (!this._storage) { | ||
| this._storage = new DummyLocalStorage(); | ||
| } | ||
| } | ||
| /** | ||
| * Empties all keys out of the storage. | ||
@@ -137,0 +154,0 @@ * |
+1
-1
| { | ||
| "name": "@jitsi/js-utils", | ||
| "version": "2.0.5", | ||
| "version": "2.0.6", | ||
| "description": "Utilities for Jitsi JS projects", | ||
@@ -5,0 +5,0 @@ "repository": { |
134779
0.47%2703
0.52%