@realm.io/common
Advanced tools
Comparing version
@@ -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; |
@@ -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 }; |
{ | ||
"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" | ||
} | ||
} | ||
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
28264
18.33%9
-18.18%542
24.03%1
Infinity%