Skip to content

Commit

Permalink
chore!: move to krakenjs scope (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
westeezy committed Mar 1, 2022
1 parent 24886fd commit b2c647e
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 10 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "publish to npm"
on: workflow_dispatch
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v2
with:
token: ${{ secrets.ACCESS_TOKEN }}
fetch-depth: 0

- name: ⎔ Setup node
# sets up the .npmrc file to publish to npm
uses: actions/setup-node@v2
with:
node-version: "14"
registry-url: "https://registry.npmjs.org"

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false

- name: Configure git user
run: |
git config --global user.email ${{ github.actor }}@users.noreply.github.com
git config --global user.name ${{ github.actor }}
- name: ▶️ Run release
run: npm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "beaver-logger",
"name": "@krakenjs/beaver-logger",
"version": "4.0.35",
"description": "Client side logger.",
"main": "dist/beaver-logger.js",
Expand Down Expand Up @@ -98,8 +98,8 @@
"sync-browser-mocks": "^1.0.44"
},
"dependencies": {
"belter": "^1.0.17",
"cross-domain-utils": "^2.0.36",
"zalgo-promise": "^1.0.26"
"@krakenjs/belter": "^2.0.0",
"@krakenjs/cross-domain-utils": "^3.0.0",
"@krakenjs/zalgo-promise": "^2.0.0"
}
}
6 changes: 3 additions & 3 deletions src/http.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* @flow */

import { ZalgoPromise } from 'zalgo-promise/src';
import { request, noop } from 'belter/src';
import { isSameDomain, assertSameDomain, type CrossDomainWindowType } from 'cross-domain-utils/src';
import { ZalgoPromise } from '@krakenjs/zalgo-promise/src';
import { request, noop } from '@krakenjs/belter/src';
import { isSameDomain, assertSameDomain, type CrossDomainWindowType } from '@krakenjs/cross-domain-utils/src';

import { canUseSendBeacon, isAmplitude, sendBeacon } from './util';

Expand Down
4 changes: 2 additions & 2 deletions src/logger.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @flow */

import { ZalgoPromise } from 'zalgo-promise/src';
import { isBrowser, promiseDebounce, noop, safeInterval, objFilter } from 'belter/src';
import { ZalgoPromise } from '@krakenjs/zalgo-promise/src';
import { isBrowser, promiseDebounce, noop, safeInterval, objFilter } from '@krakenjs/belter/src';

import { DEFAULT_LOG_LEVEL, LOG_LEVEL_PRIORITY, AUTO_FLUSH_LEVEL, FLUSH_INTERVAL, AMPLITUDE_URL } from './config';
import { LOG_LEVEL, PROTOCOL } from './constants';
Expand Down
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import { type SameDomainWindowType } from 'cross-domain-utils/src';
import { type SameDomainWindowType } from '@krakenjs/cross-domain-utils/src';

import { AMPLITUDE_URL } from './config';
import type { Payload } from './types';
Expand Down

0 comments on commit b2c647e

Please sign in to comment.