![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@egendata/react-native-jose
Advanced tools
$ npm install react-native-jose --save
pod 'react-native-jose', :path => '../node_modules/@egendata/react-native-jose'
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'react-native-jose'
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end
end
Cmd+R
)<android/app/src/main/java/[...]/MainApplication.java
import com.reactlibrary.JosePackage
to the imports at the top of the filenew JosePackage()
to the list returned by the getPackages()
methodimport * as Jose from '@egendata/react-native-jose'
// TODO: What to do with the module?
console.log(Jose)
import {sign} from '@egendata/react-native-jose'
const payload = {}
const privateKeys = {
jwk: {},
pem: '...'
} // private key containing "jwk" and "der" representations
const header = {}
const token = await sign(payload, privateKeys, header)
import {verify} from '@egendata/react-native-jose'
const token = '...'
const jwk = {} // public key
const payload = await verify(token, jwk)
import {decode} from '@egendata/react-native-jose'
const token = '...'
const options = {} // not used currently
const {claimsSet, header, signature} = await decode(token, options)
import {addRecipient} from '@egendata/react-native-jose'
const jwe = {}
const ownerKeys = {
jwk: {},
pem: ''
} // private key containing "jwk" and "pem" representations
const recipientKeys = {
jwk: {},
pem: ''
} // public key containing "jwk" and "pem" representations
const alg // currently only supports "RSA-OAEP"
const newJwe = await addRecipient(payload, ownerKeys, recipientKeys, alg)
FAQs
TODO
We found that @egendata/react-native-jose demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.