MCPcopy Create free account
hub / github.com/node-apn/node-apn / configureAddress

Function configureAddress

lib/config.js:92–109  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

90}
91
92function configureAddress(options) {
93 if (!options.address) {
94 if (options.production) {
95 options.address = EndpointAddress.production;
96 }
97 else {
98 options.address = EndpointAddress.development;
99 }
100 }
101 else {
102 if (options.address === EndpointAddress.production) {
103 options.production = true;
104 }
105 else {
106 options.production = false;
107 }
108 }
109};

Callers 1

configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…