New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@realm.io/common

Package Overview
Dependencies
Maintainers
7
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@realm.io/common - npm Package Compare versions

Comparing version

to
0.1.2

27

dist/bundle.cjs.js

@@ -95,2 +95,28 @@ 'use strict';

////////////////////////////////////////////////////////////////////////////
//
// Copyright 2022 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////
// Used as a key by Realm React in `useQuery`, to store the original object
// which is being proxied, for compatibility with JSC pre-v11 (#4541)
const PROXY_TARGET = Symbol("PROXY_TARGET");
var symbols = /*#__PURE__*/Object.freeze({
__proto__: null,
PROXY_TARGET: PROXY_TARGET
});
////////////////////////////////////////////////////////////////////////////
// Exported for unit testing

@@ -117,1 +143,2 @@ const isDevelopmentModeImpl = () => {

exports.isDevelopmentModeImpl = isDevelopmentModeImpl;
exports.symbols = symbols;

11

dist/bundle.d.ts

@@ -37,2 +37,11 @@ /**

export { deprecationWarning, handleDeprecatedPositionalArgs };
declare const PROXY_TARGET: unique symbol;
declare const symbols_d_PROXY_TARGET: typeof PROXY_TARGET;
declare namespace symbols_d {
export {
symbols_d_PROXY_TARGET as PROXY_TARGET,
};
}
export { deprecationWarning, handleDeprecatedPositionalArgs, symbols_d as symbols };

@@ -95,2 +95,28 @@ 'use strict';

////////////////////////////////////////////////////////////////////////////
//
// Copyright 2022 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////
// Used as a key by Realm React in `useQuery`, to store the original object
// which is being proxied, for compatibility with JSC pre-v11 (#4541)
const PROXY_TARGET = Symbol("PROXY_TARGET");
var symbols = /*#__PURE__*/Object.freeze({
__proto__: null,
PROXY_TARGET: PROXY_TARGET
});
////////////////////////////////////////////////////////////////////////////
// React/React Native set a global __DEV__ variable when running in dev mode

@@ -101,1 +127,2 @@ setIsDevelopmentMode(typeof __DEV__ !== "undefined" && __DEV__);

exports.handleDeprecatedPositionalArgs = handleDeprecatedPositionalArgs;
exports.symbols = symbols;

@@ -91,5 +91,31 @@ ////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////
//
// Copyright 2022 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////
// Used as a key by Realm React in `useQuery`, to store the original object
// which is being proxied, for compatibility with JSC pre-v11 (#4541)
const PROXY_TARGET = Symbol("PROXY_TARGET");
var symbols = /*#__PURE__*/Object.freeze({
__proto__: null,
PROXY_TARGET: PROXY_TARGET
});
////////////////////////////////////////////////////////////////////////////
// React/React Native set a global __DEV__ variable when running in dev mode
setIsDevelopmentMode(typeof __DEV__ !== "undefined" && __DEV__);
export { deprecationWarning, handleDeprecatedPositionalArgs };
export { deprecationWarning, handleDeprecatedPositionalArgs, symbols };

@@ -91,2 +91,28 @@ ////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////
//
// Copyright 2022 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////
// Used as a key by Realm React in `useQuery`, to store the original object
// which is being proxied, for compatibility with JSC pre-v11 (#4541)
const PROXY_TARGET = Symbol("PROXY_TARGET");
var symbols = /*#__PURE__*/Object.freeze({
__proto__: null,
PROXY_TARGET: PROXY_TARGET
});
////////////////////////////////////////////////////////////////////////////
// Exported for unit testing

@@ -110,2 +136,2 @@ const isDevelopmentModeImpl = () => {

export { deprecationWarning, handleDeprecatedPositionalArgs, isDevelopmentModeImpl };
export { deprecationWarning, handleDeprecatedPositionalArgs, isDevelopmentModeImpl, symbols };

7

package.json
{
"name": "@realm.io/common",
"version": "0.1.1",
"version": "0.1.2",
"description": "Cross-product common code used by Realm",

@@ -46,6 +46,5 @@ "main": "./dist/bundle.cjs.js",

"rollup": "^2.6.1",
"rollup-plugin-dts": "^1.4.0",
"ts-node": "^8.8.2",
"typescript": "^4.2.4"
"rollup-plugin-dts": "^1.4.0"
}
}