coyotte508 HF staff commited on
Commit
7a24123
1 Parent(s): 9609cf5

Delete shared

Browse files
shared/package.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "name": "@huggingface/shared",
3
- "version": "1.0.0",
4
- "private": true,
5
- "main": "src/index.ts",
6
- "source": "src/index.ts",
7
- "types": "./src/index.ts"
8
- }
 
 
 
 
 
 
 
 
 
shared/pnpm-lock.yaml DELETED
@@ -1,5 +0,0 @@
1
- lockfileVersion: '6.0'
2
-
3
- settings:
4
- autoInstallPeers: true
5
- excludeLinksFromLockfile: false
 
 
 
 
 
 
shared/shared/package.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "name": "@huggingface/shared",
3
- "version": "1.0.0",
4
- "private": true,
5
- "main": "src/index.ts",
6
- "source": "src/index.ts",
7
- "types": "./src/index.ts"
8
- }
 
 
 
 
 
 
 
 
 
shared/shared/pnpm-lock.yaml DELETED
@@ -1,5 +0,0 @@
1
- lockfileVersion: '6.0'
2
-
3
- settings:
4
- autoInstallPeers: true
5
- excludeLinksFromLockfile: false
 
 
 
 
 
 
shared/shared/src/base64FromBytes.ts DELETED
@@ -1,11 +0,0 @@
1
- export function base64FromBytes(arr: Uint8Array): string {
2
- if (globalThis.Buffer) {
3
- return globalThis.Buffer.from(arr).toString("base64");
4
- } else {
5
- const bin: string[] = [];
6
- arr.forEach((byte) => {
7
- bin.push(String.fromCharCode(byte));
8
- });
9
- return globalThis.btoa(bin.join(""));
10
- }
11
- }
 
 
 
 
 
 
 
 
 
 
 
 
shared/shared/src/index.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './base64FromBytes';
2
- export * from './isBackend';
3
- export * from './isFrontend';
 
 
 
 
shared/shared/src/isBackend.ts DELETED
@@ -1,6 +0,0 @@
1
- const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
2
-
3
- const isWebWorker =
4
- typeof self === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope";
5
-
6
- export const isBackend = !isBrowser && !isWebWorker;
 
 
 
 
 
 
 
shared/shared/src/isFrontend.ts DELETED
@@ -1,3 +0,0 @@
1
- import { isBackend } from "./isBackend";
2
-
3
- export const isFrontend = !isBackend;
 
 
 
 
shared/shared/tsconfig.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "esModuleInterop": true,
4
- "noEmit": false,
5
- "module": "ESNext",
6
- "target": "ESNext",
7
- "moduleResolution": "Node",
8
- "noImplicitAny": true,
9
- "strict": true,
10
- "strictNullChecks": true,
11
- "skipLibCheck": true,
12
- "composite": true
13
- }
14
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
shared/src/base64FromBytes.ts DELETED
@@ -1,11 +0,0 @@
1
- export function base64FromBytes(arr: Uint8Array): string {
2
- if (globalThis.Buffer) {
3
- return globalThis.Buffer.from(arr).toString("base64");
4
- } else {
5
- const bin: string[] = [];
6
- arr.forEach((byte) => {
7
- bin.push(String.fromCharCode(byte));
8
- });
9
- return globalThis.btoa(bin.join(""));
10
- }
11
- }
 
 
 
 
 
 
 
 
 
 
 
 
shared/src/index.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './base64FromBytes';
2
- export * from './isBackend';
3
- export * from './isFrontend';
 
 
 
 
shared/src/isBackend.ts DELETED
@@ -1,6 +0,0 @@
1
- const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
2
-
3
- const isWebWorker =
4
- typeof self === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope";
5
-
6
- export const isBackend = !isBrowser && !isWebWorker;
 
 
 
 
 
 
 
shared/src/isFrontend.ts DELETED
@@ -1,3 +0,0 @@
1
- import { isBackend } from "./isBackend";
2
-
3
- export const isFrontend = !isBackend;
 
 
 
 
shared/tsconfig.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "esModuleInterop": true,
4
- "noEmit": false,
5
- "module": "ESNext",
6
- "target": "ESNext",
7
- "moduleResolution": "Node",
8
- "noImplicitAny": true,
9
- "strict": true,
10
- "strictNullChecks": true,
11
- "skipLibCheck": true,
12
- "composite": true
13
- }
14
- }