Skip to content

Commit

Permalink
switch to uuid from @onflow/utils-uid
Browse files Browse the repository at this point in the history
  • Loading branch information
nialexsan committed Jul 7, 2023
1 parent 8dcb70c commit 2a15ef5
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 178 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {uid} from "@onflow/util-uid"
import {v4 as uuidv4} from 'uuid';
import {frame} from "./utils/frame"
import {normalizePollingResponse} from "../../../normalizers/service/polling-response"
import {VERSION} from "../../../VERSION"

export function execIframeRPC({service, body, config, opts}) {
return new Promise((resolve, reject) => {
const id = uid()
const id = uuidv4()
const includeOlderJsonRpcCall = opts.includeOlderJsonRpcCall

frame(service, {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {uid} from "@onflow/util-uid"
import {v4 as uuidv4} from 'uuid';
import {pop} from "./utils/pop"
import {normalizePollingResponse} from "../../../normalizers/service/polling-response"
import {VERSION} from "../../../VERSION"

export function execPopRPC({service, body, config, opts}) {
return new Promise((resolve, reject) => {
const id = uid()
const id = uuidv4()
const {redir, includeOlderJsonRpcCall} = opts

pop(service, {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {uid} from "@onflow/util-uid"
import {v4 as uuidv4} from 'uuid';
import {tab} from "./utils/tab"
import {normalizePollingResponse} from "../../../normalizers/service/polling-response"
import {VERSION} from "../../../VERSION"

export function execTabRPC({service, body, config, opts}) {
return new Promise((resolve, reject) => {
const id = uid()
const id = uuidv4()
const {redir, includeOlderJsonRpcCall} = opts

tab(service, {
Expand Down
7 changes: 0 additions & 7 deletions packages/util-uid/.babelrc

This file was deleted.

2 changes: 0 additions & 2 deletions packages/util-uid/.browserslistrc

This file was deleted.

1 change: 0 additions & 1 deletion packages/util-uid/.npmignore

This file was deleted.

88 changes: 0 additions & 88 deletions packages/util-uid/CHANGELOG.md

This file was deleted.

23 changes: 0 additions & 23 deletions packages/util-uid/README.md

This file was deleted.

33 changes: 0 additions & 33 deletions packages/util-uid/package.json

This file was deleted.

13 changes: 0 additions & 13 deletions packages/util-uid/src/util-uid.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/util-uid/src/util-uid.test.js

This file was deleted.

0 comments on commit 2a15ef5

Please sign in to comment.