Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

expo-modules-core

Package Overview
Dependencies
Maintainers
27
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-modules-core - npm Package Compare versions

Comparing version 2.0.0-canary-20240814-ce0f7d5 to 2.0.0-canary-20240904-69100c1

android/src/main/java/expo/modules/kotlin/devtools/OkHttpExtensions.kt

2

build/index.d.ts

@@ -18,3 +18,3 @@ import EventEmitter, { type EventSubscription } from './EventEmitter';

export * from './requireNativeModule';
export * from './createWebModule';
export * from './registerWebModule';
export * from './TypedArrays.types';

@@ -21,0 +21,0 @@ export * from './PermissionsInterface';

@@ -61,4 +61,2 @@ import type { EventEmitter } from './EventEmitter';

EXPO_DEV_SERVER_ORIGIN?: string;
/** Enables static rendering entry point on web. */
EXPO_PUBLIC_USE_STATIC?: string;
EXPO_ROUTER_IMPORT_MODE?: string;

@@ -65,0 +63,0 @@ EXPO_ROUTER_ABS_APP_ROOT?: string;

import type { EventEmitter as EventEmitterType, EventSubscription, EventsMap } from '../ts-declarations/EventEmitter';
import type { NativeModule as NativeModuleType } from '../ts-declarations/NativeModule';
declare class EventEmitter<TEventsMap extends EventsMap> implements EventEmitterType {
import type { SharedObject as SharedObjectType } from '../ts-declarations/SharedObject';
import type { SharedRef as SharedRefType } from '../ts-declarations/SharedRef';
export declare class EventEmitter<TEventsMap extends EventsMap> implements EventEmitterType {
private listeners?;

@@ -18,3 +20,7 @@ addListener<EventName extends keyof TEventsMap>(eventName: EventName, listener: TEventsMap[EventName]): EventSubscription;

}
export {};
export declare class SharedObject<TEventsMap extends Record<never, never>> extends EventEmitter<TEventsMap> implements SharedObjectType {
release(): void;
}
export declare class SharedRef<TEventsMap extends Record<never, never>> extends SharedObject<TEventsMap> implements SharedRefType {
}
//# sourceMappingURL=CoreModule.d.ts.map

@@ -0,1 +1,2 @@

export declare function registerWebGlobals(): void;
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,2 @@

export * from './CoreModule';
export declare function registerWebGlobals(): void;
//# sourceMappingURL=index.web.d.ts.map
{
"name": "expo-modules-core",
"version": "2.0.0-canary-20240814-ce0f7d5",
"version": "2.0.0-canary-20240904-69100c1",
"description": "The core of Expo Modules architecture",

@@ -45,5 +45,5 @@ "main": "src/index.ts",

"@testing-library/react-native": "^12.5.2",
"expo-module-scripts": "3.6.0-canary-20240814-ce0f7d5"
"expo-module-scripts": "3.6.0-canary-20240904-69100c1"
},
"gitHead": "ce0f7d5c7eaec2c8d06ee4e0dc0e58cd6c1612ed"
"gitHead": "69100c1b099b707057c052ed8096e06cb208aca1"
}
import { NativeModules, Platform } from 'react-native';
import { registerWebGlobals } from './web/index';
/**

@@ -14,3 +16,3 @@ * Ensures that the native modules are installed in the current runtime.

// Requiring web folder sets up the `globalThis.expo` object.
require('./web');
registerWebGlobals();
} else {

@@ -17,0 +19,0 @@ // TODO: ExpoModulesCore shouldn't be optional here,

@@ -40,3 +40,3 @@ import EventEmitter, { type EventSubscription } from './EventEmitter';

export * from './requireNativeModule';
export * from './createWebModule';
export * from './registerWebModule';
export * from './TypedArrays.types';

@@ -43,0 +43,0 @@

@@ -77,4 +77,2 @@ import type { EventEmitter } from './EventEmitter';

EXPO_DEV_SERVER_ORIGIN?: string;
/** Enables static rendering entry point on web. */
EXPO_PUBLIC_USE_STATIC?: string;

@@ -81,0 +79,0 @@ EXPO_ROUTER_IMPORT_MODE?: string;

@@ -9,5 +9,4 @@ import type {

import type { SharedRef as SharedRefType } from '../ts-declarations/SharedRef';
import uuid from '../uuid';
class EventEmitter<TEventsMap extends EventsMap> implements EventEmitterType {
export class EventEmitter<TEventsMap extends EventsMap> implements EventEmitterType {
private listeners?: Map<keyof TEventsMap, Set<Function>>;

@@ -95,3 +94,3 @@

class SharedObject<TEventsMap extends Record<never, never>>
export class SharedObject<TEventsMap extends Record<never, never>>
extends EventEmitter<TEventsMap>

@@ -105,20 +104,4 @@ implements SharedObjectType

class SharedRef<TEventsMap extends Record<never, never>>
export class SharedRef<TEventsMap extends Record<never, never>>
extends SharedObject<TEventsMap>
implements SharedRefType {}
globalThis.expo = {
EventEmitter,
NativeModule,
SharedObject,
SharedRef,
modules: {},
uuidv4: uuid.v4,
uuidv5: uuid.v5,
getViewConfig: () => {
throw new Error('Method not implemented.');
},
reloadAppAsync: async () => {
window.location.reload();
},
};

@@ -1,1 +0,23 @@

export * from './CoreModule';
import { EventEmitter, NativeModule, SharedObject, SharedRef } from './CoreModule';
import uuid from '../uuid';
export function registerWebGlobals() {
if (globalThis.expo) return;
globalThis.expo = {
EventEmitter,
NativeModule,
SharedObject,
SharedRef,
modules: {},
uuidv4: uuid.v4,
uuidv5: uuid.v5,
getViewConfig: () => {
throw new Error('Method not implemented.');
},
reloadAppAsync: async () => {
window.location.reload();
},
};
}
registerWebGlobals();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc